<norc>
Anyway. An included module is not lexically available.
<benzrf_>
i KNOW
<norc>
Then we are done?
<benzrf_>
like i said, i understand how this all works, you're just not following whta i mean to say
SilverKey has quit [Quit: Halted.]
<benzrf_>
i figured out how it works thanks to your help, then i tried to double check my understanding by asking if i was right about part of it, but you misunderstood what i meant to say, and it kind of devolved into this
roundabout22 has joined #ruby
<benzrf_>
i guess we're done
<benzrf_>
sorry
benzrf_ has quit [Quit: leaving]
chipotle has quit [Quit: cheerio]
jancel has joined #ruby
Gasher has quit [Quit: Leaving]
skweek has quit [Ping timeout: 260 seconds]
roundabout22 has quit [Ping timeout: 240 seconds]
GGMethos has quit [Quit: WeeChat 1.1.1]
mostlybadfly has quit [Quit: Connection closed for inactivity]
replay has quit []
smathy is now known as smathy_afk
cbyrda has quit [Remote host closed the connection]
norc has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
GGMethos has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
__ian__r has quit [Quit: Leaving]
Azure has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
kawb has joined #ruby
ElFerna has joined #ruby
<Synthead>
is there an intelligent way I can turn a hash into an inifile?
<Synthead>
I'm using IniFile, but it seems as if it only accepts "a=b"-formatted text already to build it
<Synthead>
in that case, IniFile doesn't serve much purpose for what I'm doing
<Synthead>
the goal is to have {a: "a", b: "b"} and get "a=a\nb=b"
dnewkerk has joined #ruby
<Synthead>
I could do {}.map {|k, v| "#{k}=#{v}"}.join("\n"), but that seems crufty
jenrzzz has joined #ruby
whiteline has quit [Remote host closed the connection]
infernix has quit [Ping timeout: 250 seconds]
whiteline has joined #ruby
kareeoleez has joined #ruby
blackmesa has joined #ruby
jackjackdripper has joined #ruby
Yiota has joined #ruby
jancel has quit [Remote host closed the connection]
whiteline has quit [Remote host closed the connection]
symm- has joined #ruby
whiteline has joined #ruby
<Synthead>
Radar: ah, there we go. I didn't know that it required sections and there wasn't a very good error :)
<Synthead>
thanks!
mistermocha has joined #ruby
<Radar>
np :)
wald0 has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
aberen has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aberen has quit [Ping timeout: 260 seconds]
infernix has joined #ruby
Yiota has joined #ruby
mostlybadfly has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
n1x-nz has joined #ruby
karmatr0n has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
blaxter has quit [Read error: Connection reset by peer]
kawb has quit [Quit: Leaving...]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 246 seconds]
cajone has left #ruby [#ruby]
cajone has joined #ruby
norc__ has joined #ruby
kareeoleez has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
norc_ has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Quit: Leaving.]
Rickmasta has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
truenito has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
MrBusiness has joined #ruby
AcidCras_ has joined #ruby
SirOliver has joined #ruby
AcidCrash has quit [Ping timeout: 246 seconds]
dudepare has quit [Ping timeout: 276 seconds]
moeabdol has quit [Ping timeout: 244 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
nick_traveling has quit [Quit: Page closed]
nettoweb has joined #ruby
sneakerhax has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Ping timeout: 260 seconds]
SirOliver has quit [Quit: ZZZzzz…]
ElFerna has joined #ruby
Rickmasta has joined #ruby
jancel has joined #ruby
blackmesa has joined #ruby
arescorpio has joined #ruby
hahuang62 has joined #ruby
jancel has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
hahuang62 has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 246 seconds]
smathy_afk is now known as smathy
kareeoleez has joined #ruby
Rickmasta has joined #ruby
twistedpixels_ is now known as twistedpixels
aberen has joined #ruby
brent__ has joined #ruby
raldu has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
evidex has quit [Ping timeout: 272 seconds]
xall has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
ocbtec has quit [Quit: leaving]
<brent__>
Hello. I'm making a basic stack class, and need to implement a #max function that returns the max value in the stack. However I need to keep it to O(1), so I can't just call Array#max on it, or any iteration. I was thinking of using a @max_val to store the max val and update if need be when a new val is pushed to the stack. However I'm lost on an elegant way
<brent__>
to update the @max_val if it gets popped off the stack
skweek has joined #ruby
roamingdog has quit [Remote host closed the connection]
xall_ has joined #ruby
evansbee has joined #ruby
<smathy>
brent__, you'll need an index stack that refers to the indices of the elements in order of "max"-ness.
RegulationD has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 264 seconds]
<smathy>
...actually, that'll make pop a O(N)
<brent__>
right
<smathy>
...and push worse - to re-order the index structure.
<brent__>
right, that may take a nested loop
evansbee has quit [Ping timeout: 258 seconds]
<smathy>
Yeah, that's the gotcha really, to make a O(1) .max then you'll have to calculate a new element's position on .push so your push has to become O(n log n)
lightt has quit [Read error: Connection reset by peer]
<brent__>
this is the hint i was given Hint: We could store some metadata with the value of each element. Think about how to do this and what information to store.
<smathy>
...or O(n) at least I suppose, if the list is already sorted.
<smathy>
Do you have a requirement for the push?
<brent__>
doesn't look like it, but would be interesting that they would be okay w/ a larger complexity on the # that will get used more
<smathy>
Yeah, you'd have to have at least O(n) on the insert, there's no other way I can think to do it.
<smathy>
So then you're either storing both the value and a pointer to the next largest element, or the next to pop.
mistermocha has joined #ruby
<brent__>
!
mistermocha has quit [Read error: Connection reset by peer]
<brent__>
or maybe not
kareeoleez has joined #ruby
ruby has joined #ruby
<ruby>
hi
<ruby>
question
<brent__>
i keep thinking they're maybe looking for some sort of a hash
ruby is now known as Guest19923
<brent__>
to be used, ut not sure
<brent__>
trying to figure out how it would be used
<Guest19923>
im using Terminal::Table
<Guest19923>
how do i test the output?
<Guest19923>
for example i expect that it renders a table in a certain way
<Guest19923>
whats a good way to test it
mshowman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 276 seconds]
<smathy>
brent__, I don't see how a hash changes anything I said, but good luck.
kareeoleez has quit [Ping timeout: 260 seconds]
<smathy>
I gotta afk - but definitely drop a line if you discover something.
<brent__>
smathy: yeah me neither
youch has joined #ruby
<brent__>
i peaked
maloik has quit [Remote host closed the connection]
<brent__>
:(
maloik has joined #ruby
<smathy>
Guest19923, create the string you expect to be output, and see if the table equals that string.
aberen has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<brent__>
smathy: they changed the stack so each element is a hash w/ a value, min_val, max_val, and then I have a #peek method that returns the next element in the stack, which will have those 3 attributes https://gist.github.com/brentluna/3b7d1ececcec80b515c658a2d55951d2
kies has joined #ruby
<smathy>
Right, which means you have to work ....oh, no you don't. You only have to compare with the *last* element's min/max - ok, yeah, that's clever :)
mistermocha has joined #ruby
davede has joined #ruby
pawnbox has quit [Remote host closed the connection]
kareeoleez has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mattwashere has joined #ruby
<Guest19923>
smathy: i saw EOF.unintend before where is it coming from
<brent__>
indeed. Not sure I would have got to that in a reasonable amount of time
ramfjord has quit [Ping timeout: 276 seconds]
<brent__>
thanks for your help
mistermocha has joined #ruby
evansbee has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
dcunit3d has joined #ruby
<Guest19923>
what does EOF.anything mean
kareeoleez has quit [Ping timeout: 240 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
<An_>
# Output "I love Ruby" say = "I love Ruby" puts say # Output "I *LOVE* RUBY" say['love'] = "*love*" puts say.upcase # Output "I *love* Ruby"
kies has joined #ruby
<An_>
but this is not correct for ruby version now aday
<An_>
i think admin should repair this
<An_>
because when i copy it to my irb
<An_>
my result is:
<An_>
2.3.1 :001 > say = "I love Ruby" => "I love Ruby" 2.3.1 :002 > puts say I love Ruby => nil 2.3.1 :003 > 2.3.1 :004 > say['love'] = "*love*" => "*love*" 2.3.1 :005 > puts say.upcase I *LOVE* RUBY => nil
kareeoleez has joined #ruby
dcunit3d has quit [Ping timeout: 244 seconds]
An_ has quit [Quit: Page closed]
rbgem has joined #ruby
<rbgem>
hi i just installed ruby 2.3.0. I entered sum(5,6) and I got the error: NoMethodError: undefined method `sum' for main:Object
<rbgem>
how can i fix it?
<rbgem>
it is giving the same error for all methods.
kareeoleez has quit [Ping timeout: 272 seconds]
youch has quit [Ping timeout: 244 seconds]
<Guest19923>
how cant i have puts return stdout
<Guest19923>
instead of nil
blackmesa has joined #ruby
<Lewix>
use p
<rbgem>
@Lewix, is it for me?
<Lewix>
rbgem: no, but I think you want [5,6].sum
<rbgem>
oh thnk you, will try that
tcopeland has joined #ruby
<rbgem>
NoMethodError: undefined method `sum' for [5, 6]:Array
<nofxx>
in only ruby: [1,5].reduce(&:+) works iirc
xall_ has quit [Ping timeout: 264 seconds]
<nofxx>
#sum is from rails* explaning myself better
<tcopeland>
I'm really puzzled by this difference btwn 2.2.3 and 2.3.0 https://eval.in/591215
blackmesa has quit [Ping timeout: 244 seconds]
<nofxx>
rbgem, nice about reduce is that you may use substraction, multiply...
<rbgem>
oh ok. i am just starting ruby. no idea about anything. i am going through a ruby book and in that i was asked to try sum(5,6) after opening irb
<nofxx>
rbgem, can't be... what's the title
<nofxx>
rbgem, or problably there's a def sum(x, y) somwhere you missed
agentmeerkat has quit [Ping timeout: 264 seconds]
<nofxx>
put this before and try again: def sum(x, y); x + y end
diegoaguilar has joined #ruby
<rbgem>
learn ruby in 24 hours, robert dwight
ramfjord has joined #ruby
<nofxx>
rbgem, start with chris pine learn to program, free and online
<rbgem>
ok i will check it out. thank you
<nofxx>
rbgem, you'll enjoy: chris pine learn to program
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
mistermocha has quit [Remote host closed the connection]
kareeoleez has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
mimtf has joined #ruby
kraken_ has quit [Quit: Leaving]
kareeoleez has quit [Ping timeout: 244 seconds]
confound_ has joined #ruby
dcunit3d has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
mimtf has left #ruby [#ruby]
confounds has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
mimtf has joined #ruby
I_AM_EJACULATING has joined #ruby
arescorpio has quit [Quit: Leaving.]
Akuma has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has quit [Ping timeout: 264 seconds]
aberen has joined #ruby
dcunit3d has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
mattwashere has quit []
chouhoulis has joined #ruby
kareeoleez has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has quit [Remote host closed the connection]
brent__ has quit [Quit: Connection closed for inactivity]
Ropeney has joined #ruby
aberen has quit [Ping timeout: 244 seconds]
I_AM_EJACULATING has quit [K-Lined]
nankyokusei has joined #ruby
confound_ has quit [Remote host closed the connection]
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
kareeoleez has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sauvin has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
youch has quit [Quit: Konversation terminated!]
dcunit3d has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
A124 has quit [Quit: '']
Akuma has quit [Quit: So long sukkas!]
A124 has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
Dimik has joined #ruby
kies has quit [Ping timeout: 258 seconds]
agentmeerkat has joined #ruby
fckyoufreenode has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
roamingdog has quit []
araujo has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
yfeldblum has quit [Remote host closed the connection]
d0lph1n98 has joined #ruby
hahuang62 has joined #ruby
blackmesa has joined #ruby
fckyoufreenode has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
mshowman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 264 seconds]
hogetaro has joined #ruby
strigonLeader has quit [Read error: Connection reset by peer]
neanderslob has quit [Ping timeout: 260 seconds]
beneggett has joined #ruby
tildes has quit [Ping timeout: 272 seconds]
neanderslob has joined #ruby
northfurr has joined #ruby
amclain has quit [Quit: Leaving]
moeabdol has joined #ruby
ponga has joined #ruby
raviShankarJha has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
strigonLeader has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
tmtwd has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
elementaru has joined #ruby
digneety has joined #ruby
Dimik has joined #ruby
digneety has quit [Client Quit]
jgt has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
brunchbb has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
harfangk has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
spider-mario has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
yeticry has quit [Remote host closed the connection]
yeticry has joined #ruby
beneggett has joined #ruby
northfurr has quit [Quit: northfurr]
hogetaro has quit [Quit: Leaving...]
conta has joined #ruby
evansbee has joined #ruby
northfurr has joined #ruby
beneggett has quit [Client Quit]
evansbee has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
beneggett has joined #ruby
blackmesa has joined #ruby
beneggett has quit [Client Quit]
nanoz has joined #ruby
sp4rrow has joined #ruby
karmatr0n has joined #ruby
RegulationD has joined #ruby
mimtf has left #ruby [#ruby]
kies has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
hirvi has quit [Quit: leaving]
tildes has joined #ruby
beneggett has joined #ruby
garrulous_goose has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has quit [Client Quit]
aberen has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
dnewkerk has quit [Quit: dnewkerk]
yaewa has joined #ruby
moei has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
mercerist has joined #ruby
yfeldblum has joined #ruby
aberen has quit [Ping timeout: 240 seconds]
slackbotgz has joined #ruby
jas02 has joined #ruby
mercerist has quit [Ping timeout: 244 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
nankyokusei has joined #ruby
consti has joined #ruby
mercerist has joined #ruby
kies has quit [Ping timeout: 244 seconds]
northfurr has quit [Ping timeout: 244 seconds]
northfurr has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
firstdayonthejob has joined #ruby
zacstewart has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby
beneggett has joined #ruby
hirvi has joined #ruby
<Dimik>
hey guys
chouhoulis has quit [Remote host closed the connection]
northfurr has quit [Ping timeout: 260 seconds]
hirvi has quit [Client Quit]
hirvi has joined #ruby
hirvi has quit [Client Quit]
hirvi has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
beneggett has quit [Client Quit]
rippa has joined #ruby
vdamewood has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
agentmeerkat has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
<jhass>
hi
minimalism has quit [Quit: minimalism]
<ljarvis>
hello
agentmeerkat has quit [Ping timeout: 244 seconds]
tildes has joined #ruby
Ropeney has joined #ruby
Vile` has joined #ruby
slackbotgz has quit [Remote host closed the connection]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: This computer has gone to sleep]
xall_ has joined #ruby
Ropeney has joined #ruby
zacstewart has joined #ruby
multi_io has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
multi_io has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
blackmesa has joined #ruby
karmatr0n has joined #ruby
agentmeerkat has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 258 seconds]
marr has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Remote host closed the connection]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
schuuu has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
arajakul has quit [Ping timeout: 252 seconds]
hahuang62 has quit [Ping timeout: 260 seconds]
beneggett has joined #ruby
Sammichmaker has quit [Ping timeout: 250 seconds]
agentmeerkat has joined #ruby
houhoulis has quit [Remote host closed the connection]
<apeiros>
moin ljarvis
Dimik has quit [Ping timeout: 276 seconds]
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
blackgoat has quit [Quit: WeeChat 1.5]
beneggett has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
Robtop__ has joined #ruby
ayonkhan has joined #ruby
blackmesa has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
jas02 has quit [Quit: jas02]
saneax is now known as saneax_AFK
lightt has joined #ruby
beneggett has quit [Quit: ...zzz ¯\_(ツ)_/¯ zzz...]
al2o3-cr has quit [Ping timeout: 260 seconds]
My_Hearing is now known as Mon_Ouie
evansbee has joined #ruby
zacstewart has joined #ruby
pwnd_nsfw` has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
evansbee has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 252 seconds]
agentmeerkat has joined #ruby
Coldblackice has joined #ruby
RegulationD has joined #ruby
karmatr0n has joined #ruby
houhoulis has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
aries_liuxueyang has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
miqlas-H has joined #ruby
elvillanorevento has joined #ruby
aberen has joined #ruby
kareeoleez has quit [Remote host closed the connection]
beneggett has joined #ruby
kraken has joined #ruby
kraken is now known as Guest9390
dcunit3d has quit [Ping timeout: 252 seconds]
<Guest9390>
Alright, I'm pretty new to programming, but to a computer, is a binary tree with 6**65 object nodes considered a large task for a computer?
<jhass>
possibly, depends on how efficiently it's represented, what the nodes contain, what operations need to be done on it
<jhass>
but probably not "large" these days, can still be medium
vuoto_ has joined #ruby
<Guest9390>
I see
<apeiros>
6**65?
<apeiros>
I don't think you can store that at all :D
<apeiros>
even if each node took only a single bit, that'd probably still exceed the world's storage capacity ;-)
<Guest9390>
:(
<rippa>
that's 3.3e+35 petabytes
<Guest9390>
I'm building a chess game, and trying to figure out the quickest possible way to get toa certain location as a knight, and the largest possible amount of moves it can take to get from one spot ot another is 65
<ruby[bot]>
Eilinen: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
KnownSyntax has quit [Ping timeout: 244 seconds]
thegunbuster has quit [Read error: Connection reset by peer]
binaryplease has joined #ruby
RegulationD has joined #ruby
<Eilinen>
Problem is that it works fine if there are less than those 12 characters
eGGshke has joined #ruby
<tobiasvl>
so that tells you that your error is in the if clause
<tobiasvl>
puts b + s + c
<tobiasvl>
that should give you an error
SCHAAP137 has joined #ruby
tmtwd has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<tobiasvl>
Eilinen: right?
<Eilinen>
Yes
<tobiasvl>
so perhaps it is this error:
<tobiasvl>
TypeError: no implicit conversion of Fixnum into String
<tobiasvl>
riiight?
RegulationD has quit [Ping timeout: 276 seconds]
<Eilinen>
Ah pardon, can't read fast enough after double clicking etc
<Eilinen>
Just trying to test again it it works with irb
<tobiasvl>
that's ok, just trying to weasel out of you what your problem actually is
<Eilinen>
TypeError: no implicit conversion of Fixnum into String from (irb):8:in `+' from (irb):8 from C:/Ruby22-x64/bin/irb:11:in `<main>'
<Eilinen>
Yeah that one
Snowy has quit [Read error: Connection reset by peer]
SirOliver has joined #ruby
SirOliver has quit [Client Quit]
Snowy has joined #ruby
<tobiasvl>
right. so that tells you that + tries to convert a Fixnum into a string. you know that a is a string and b is a Fixnum of sorts (an integer), so that must be the conversion that fails
<tobiasvl>
for a string, + means concatenation, but for a number it means addition.
<tobiasvl>
on line 4 you do this:
<tobiasvl>
a.size.to_i
SirOliver has joined #ruby
<tobiasvl>
(sorry, I meant s, not b)
<Eilinen>
no problem
<tobiasvl>
I'm not sure why, because a.size should already be a number. you don't need to do to_i on it. it would, however, be an idea to do to_s on it, so it becomes a string that can be concatenated
dionysus69 has joined #ruby
<Eilinen>
Okay, well I wasn't sure if it is so I tried to play it safe
kareeoleez has joined #ruby
Long has quit [Quit: Leaving.]
<tobiasvl>
well, even if it wasn't, you want it to end up as a string
aberen has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
e4xit_ has joined #ruby
e4xit_ is now known as e4xit
<Eilinen>
Hmm okay well in that problem you're supposed to get first and last character in case the string is over 10 characters. And if it's over let's say like 12 characters it should give an outcome: f12l assuming that f is first and l is last character
<Eilinen>
So I thought that easy way would have been what I tried.
pwnd_nsfw has quit [Read error: Connection reset by peer]
leitz has joined #ruby
aberen has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
phoo1234567 has joined #ruby
nankyokusei has joined #ruby
blackmesa has joined #ruby
mdw has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
cajone has quit [Quit: Leaving.]
kareeoleez has joined #ruby
moeabdol has joined #ruby
cajone has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
<leitz>
Working on OOP design, my brain is melting...reducing the main class more and more to do less and less.
diegoaguilar has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
agentmeerkat has joined #ruby
k3rn31 has joined #ruby
tvw has quit []
startupality has joined #ruby
tuelz has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
agentmeerkat has quit [Ping timeout: 244 seconds]
Xiti has quit [Ping timeout: 276 seconds]
daumie has joined #ruby
kareeoleez has joined #ruby
<daumie>
Hello.......I wanna learn Ruby...I could use some advice
hanmac has quit [Ping timeout: 258 seconds]
dling has quit []
kareeoleez has quit [Ping timeout: 252 seconds]
<jhass>
daumie: just ask
startupality has quit [Quit: startupality]
blackmesa has quit [Ping timeout: 244 seconds]
biberu has joined #ruby
d0lph1n98 has joined #ruby
aries_liuxueyang has quit [Ping timeout: 250 seconds]
ocbtec has joined #ruby
hanmac has joined #ruby
n1xnz has quit [Quit: Computer says no]
kareeoleez has joined #ruby
tmtwd has joined #ruby
aries_liuxueyang has joined #ruby
kareeoleez has quit [Ping timeout: 272 seconds]
nadir has joined #ruby
Long has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
jaguarmagenta has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 244 seconds]
<leitz>
If i take out all the initializations from Class A, and put them into Module X, that means Module Q can also use Class A since Q doesn't want the initializations.
<leitz>
It is a bit difficult to pull away from the "one thing that rules them all" mentality.
jaguarmagenta has quit [Ping timeout: 260 seconds]
nick_traveling has joined #ruby
kareeoleez has joined #ruby
nick_traveling has quit [Client Quit]
tmtwd has quit [Ping timeout: 264 seconds]
jgt has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
jas02 has quit [Quit: jas02]
Xiti has joined #ruby
Xiti has quit [Client Quit]
agentmeerkat has joined #ruby
ta_ has joined #ruby
toretore has quit [Ping timeout: 272 seconds]
agentmeerkat has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
yqt has joined #ruby
al2o3-cr has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
troulouliou_dev has joined #ruby
startupality has joined #ruby
daumie has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
SirOliver has quit [Remote host closed the connection]
SirOliver has joined #ruby
blackmesa has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
daumie has joined #ruby
kgrz has joined #ruby
evansbee has joined #ruby
symm- has joined #ruby
startupality has quit [Quit: startupality]
blackmesa has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
GodFather has joined #ruby
evansbee has quit [Ping timeout: 260 seconds]
ornerymoose has joined #ruby
mercerist has joined #ruby
Guest19923 has quit [Ping timeout: 250 seconds]
agentmeerkat has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
pilne has joined #ruby
Snowy has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 246 seconds]
toretore has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
hogetaro has joined #ruby
kgrz has quit [Ping timeout: 272 seconds]
aberen has joined #ruby
Morrolan has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
kgrz has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
FernandoBasso has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
nankyokusei has joined #ruby
aries_liuxueyang has joined #ruby
idle_task has quit [Remote host closed the connection]
mercerist has quit [Remote host closed the connection]
startupality has joined #ruby
yottanami has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
cisco has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
agentmeerkat has joined #ruby
shinnya has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
<yottanami>
I have an array of hashes, What is the best way to check is there any hash index with specific value? for example is there [:name]='Rock' there
kgrz has quit [Ping timeout: 264 seconds]
agentmeerkat has quit [Ping timeout: 252 seconds]
<yottanami>
Is this a good way: my_arr.select {|item| item["name"] == 'Rock' }
eljimmy has quit [Read error: Connection reset by peer]
<jhass>
yottanami: almost, simply replace .select with .any?
karmatr0n has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
nankyokusei has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
gooba has quit [Ping timeout: 260 seconds]
c0mrad3 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
FernandoBasso has joined #ruby
johnmilton has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
pawnbox has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
blackmesa has joined #ruby
Esya has quit [Read error: Connection reset by peer]
evansbee has joined #ruby
saneax_AFK is now known as saneax
agentmeerkat has joined #ruby
postmodern has quit [Quit: Leaving]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<romistrub>
Well, I was hoping for a something like OReilly's Definitive Guide series
<romistrub>
don't think they have one for Ruby thought
<romistrub>
*though
kareeoleez has joined #ruby
harfangk has quit [Quit: harfangk]
<jhass>
you want a reference written as tutorial?
<jhass>
these don't work well as either IME
<jhass>
pythons language docs are kinda an example to prove that
<romistrub>
jhass: Never actually browsed through the rdocs here... only landed on them from Google searches. These could actually be of great use.
<romistrub>
Thanks :)
<romistrub>
I guess I was just hoping to have it in book-form lol. Something I can have open next to my tiny laptop, u know?
kareeoleez has quit [Ping timeout: 250 seconds]
Long has joined #ruby
harfangk has joined #ruby
agentmeerkat has joined #ruby
mdw has joined #ruby
edwinvdgraaf has joined #ruby
kareeoleez has joined #ruby
sepp2k has joined #ruby
startupality has quit [Quit: startupality]
agentmeerkat has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
kareeoleez has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
<shevy>
documentation is one of those things where ruby does not shine
startupality has quit [Client Quit]
RegulationD has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
kareeoleez has joined #ruby
<romistrub>
yeah... I was hoping for something that goes as in depth as the rdocs do, but says things like "which would be useful if, for example"
<romistrub>
but that would double the length of their docs, so I could see why it's not there
dcunit3d has quit [Ping timeout: 246 seconds]
vuoto has joined #ruby
<romistrub>
just going through all the ways you can pattern method arguments... didn't know it was so flexible. Examples of how some particular pattern could be used would have been nice. Oh well
johnmilton has quit [Ping timeout: 276 seconds]
valagalen has joined #ruby
SilverKey has quit [Quit: Halted.]
unknown| has joined #ruby
<shevy>
yeah
<shevy>
I'd like if https://pine.fm/LearnToProgram/chap_01.html would be massively expanded - or, after the current part, add an extended part, like "Tutorial II - continue here"
kareeoleez has quit [Ping timeout: 244 seconds]
safe has joined #ruby
harfangk has quit [Quit: harfangk]
iceden has quit [Ping timeout: 244 seconds]
leitz has quit [Quit: Nappy time]
<lupine>
_why _why _why..... delila...
eGGshke has quit [Quit: Leaving...]
<lupine>
romistrub: the ruby "pickaxe" book is what was being recommend back when I was after references
linoge has joined #ruby
<lupine>
dunno how often it's updated
<linoge>
Is there any way to install a homemade payment gateway in a Shopify site?
<romistrub>
lupine: thx, forgot about it, I'll take a look into it
FernandoBasso has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
valagalen has quit [Quit: Leaving]
evansbee has joined #ruby
johnmilton has joined #ruby
hutch34 has joined #ruby
banister has joined #ruby
agentmeerkat has joined #ruby
startupality has joined #ruby
<shevy>
pilne if the old code is of high quality and written in a disciplinized way, you could try to maintain it :)
kareeoleez has joined #ruby
rapha_ has quit [Quit: WeeChat 1.4]
rapha has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
Gasher has joined #ruby
toretore has joined #ruby
linoge has quit [Quit: WeeChat 1.5]
kareeoleez has joined #ruby
<pilne>
i get anxiety knowing people depend on me >.< LOL
Ropeney_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
startupality has quit [Quit: startupality]
roundabout22 has joined #ruby
moeabdol has joined #ruby
cevett has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
kgrz has joined #ruby
chouhoulis has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
vuoto has quit [Remote host closed the connection]
kareeoleez has joined #ruby
madgen has joined #ruby
yqt has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
agentmeerkat has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
ornerymoose has quit [Quit: ornerymoose]
ta_ has joined #ruby
kareeoleez has joined #ruby
agentmeerkat has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
nanoz has joined #ruby
startupality has quit [Quit: startupality]
d0lph1n98 has quit [Ping timeout: 276 seconds]
jhack has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 272 seconds]
FernandoBasso has joined #ruby
evansbee has quit [Ping timeout: 250 seconds]
ineb_ has quit [Quit: leaving]
jancel has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
daumie has quit [Ping timeout: 252 seconds]
jancel has quit [Ping timeout: 250 seconds]
neanderslob has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Remote host closed the connection]
banister is now known as banisterfiend
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
kareeoleez has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
last_staff has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
vuoto has joined #ruby
agentmeerkat has joined #ruby
neanderslob has joined #ruby
kapo has joined #ruby
rueben has joined #ruby
banister has joined #ruby
mshowman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SirOliver has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
bluOxigen has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
tuelz has joined #ruby
aupadhye has joined #ruby
jhack has quit [Quit: jhack]
mercerist has joined #ruby
jaguarmagenta has joined #ruby
rkazak has joined #ruby
RegulationD has joined #ruby
arlek has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jhack has joined #ruby
mdw has joined #ruby
aupadhye has quit [Remote host closed the connection]
mdw_ has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
madgen has quit [Ping timeout: 252 seconds]
madgen has joined #ruby
AndroidLoverInSF has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
tuelz has quit [Ping timeout: 252 seconds]
Gasher has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
jgt has joined #ruby
tmtwd has joined #ruby
AndroidLoverInSF has quit [Quit: Leaving]
jhack has quit [Quit: jhack]
tvw has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Connection closed for inactivity]
karmatr0n has quit [Ping timeout: 260 seconds]
tuelz has quit [Ping timeout: 246 seconds]
<pilne>
how is a "functional" approach of building/chaining many small functions work out in ruby? or is it better to stick to a more "OO-imperative" mindset?
LoneHermit has quit [Remote host closed the connection]
<jhass>
IMO the latter
tvw has quit [Client Quit]
<jhass>
ruby probably works best on a middle ground, like things like Enumerable/Enumerator demonstrate
<pilne>
that's going to be my major hurdle, the draw of haskell when i got back into coding was that, it is how i just tend to "build" in my head
<pilne>
python is even less friendly to that i've found, except when playing with "hy"
phoo1234567 has joined #ruby
<pilne>
ruby feels the most, but like you said, "naturally" leans towards OO-imperative
safe has quit [Read error: Connection reset by peer]
<go-nuts>
expensive(Float::INFINITY).lazy.first...what am i missing
yohle has quit [Client Quit]
<shevy>
wisdom
<jhass>
go-nuts: a question?
<go-nuts>
shevy: its loading forever.
<shevy>
what code
<jhass>
yeah show expensive
<shevy>
not too expensive!
<go-nuts>
jhass: so my expensive function take a while...i thought it was supposed to only process it when first is fired or something
<someish>
jhass: I think your suggestion will save the first index in the array twice.
<jhass>
someish: no, shift is modifying
sgringwe has quit [Quit: Page closed]
jaguarmagenta has quit [Remote host closed the connection]
<jhass>
go-nuts: no, when you call it
LoneHerm_ has joined #ruby
<someish>
jhass: Ahhh. I like it.
<jhass>
go-nuts: .lazy changes the execution of the enumerator chain coming after it, from operation a for all, operation b for all, ... to operation a for the first, operation b for the first, ...
rueben has quit [Ping timeout: 244 seconds]
<someish>
I really like that actually. And since its the end of the line for the object, I’m not super concerned with modifying it inline.
<jhass>
someish: non-modifying alternative would be .first and tasks.drop(1).each I guess
<someish>
adam12: Small world. Fellow Software Niagara member.
nankyoku_ has joined #ruby
evansbee has joined #ruby
ta_ has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
nankyoku_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
jas02 has joined #ruby
madgen has joined #ruby
symm- has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
evansbee has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
kareeole_ is now known as kareeoleez
Coldblackice has quit [Ping timeout: 250 seconds]
Coldblackice has joined #ruby
ElFerna has quit []
xall_ has joined #ruby
jinie has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
tildes has joined #ruby
conta has quit [Ping timeout: 276 seconds]
nankyoku_ has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
pdm_ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
skinnyjames has joined #ruby
hutch34 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<skinnyjames>
What's the best practice if wanting to update somebody's old rails plugin into 2 gems? Ask them to do it? or do it yourself?
mercerist has joined #ruby
armin has joined #ruby
aeterne has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 250 seconds]
[ohjn] has joined #ruby
certainty has joined #ruby
AnoHito has quit [Quit: Leaving]
Hobogrammer has joined #ruby
Rickmasta has joined #ruby
arlek has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Ping timeout: 272 seconds]
jinie has quit [Ping timeout: 246 seconds]
tildes has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
elvillanorevento has joined #ruby
AnoHito has joined #ruby
skinnyjames has left #ruby [#ruby]
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
<Papierkorb>
skinnyjames: If there hasn't been any change for quite some time on that gem, and if the author isn't really active anymore, you could do it yourself. If the author is somewhat active, try opening a github issue.
<Papierkorb>
Or maybe not. Wha'eva.
yfeldblum has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
kristofferR has joined #ruby
agentmeerkat has joined #ruby
apofis has joined #ruby
apofis has quit [Max SendQ exceeded]
apofis has joined #ruby
ta_ has joined #ruby
elvillanorevento has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
newbie|2 has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Channel6 has quit [Quit: Leaving]
<phredus>
adam12: I cannot find any documentation relating to chruby on gentoo, could you please share your information
pawnbox has joined #ruby
SirOliver has joined #ruby
<adam12>
phredus: I don't run it on gentoo, but it's distribution agnostic.
<adam12>
phredus: Aslong as you are running a compatible shell - Bash, Zsh, maybe even Fish.
startupality has joined #ruby
<adam12>
phredus: Basically, you could likely get by with downloading both, `make install` once you extract the package, and then follow the instructions for updating your `.bash_profile` or whatever.
skweek has quit [Remote host closed the connection]
specialblend_ has joined #ruby
<go-nuts>
jhass: grr i dont follow nothing, im so slow today ill just do it my way
jancel has quit [Ping timeout: 252 seconds]
Crogic has quit [Remote host closed the connection]
<phredus>
adam12: great thank you, I get chruby, but ruby-install?
<adam12>
phredus: chruby only sets up path / env variables. If you want to install a custom version of Ruby, you can either build manually or use ruby-install.
karmatr0n has joined #ruby
d5sx43 has joined #ruby
<adam12>
phredus: Essentially, you'll be installing user-local versions of Ruby. chruby sets up the paths, ruby-install does the build.
jaguarmagenta has joined #ruby
d5sx43 has quit [Client Quit]
skweek has joined #ruby
<phredus>
adam12: ok got it but where do I get ruby-install or are you saying that ruby-install is a chruby command?
<adam12>
phredus: Ah. Both are packages from postmodern, IIRC.
<marahin>
e.g. is this kind of loading modules / classes / scripts is OK, and when should I wrap things in a module?
diegoaguilar has quit [Ping timeout: 264 seconds]
startupality has quit [Quit: startupality]
codecop has quit [Remote host closed the connection]
Dimik has joined #ruby
evansbee has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
<adam12>
marahin: Are you running this in a rake task?
<marahin>
adam12, no, it's a standalone ruby script
<adam12>
Is there more than just this code?
<marahin>
yes
<adam12>
I would say you'd want _everything_ wrapped in a module or class. Maybe this could be EngineLoader or something.
bhaak has quit [Quit: leaving]
<adam12>
The reason I asked about the rake task was the `say` method you keep calling.
<marahin>
adam12, oh, I forgot to mention that I am using Highline for CLI use
<adam12>
It's weird seeing Erb inside a method call like that, but probably not outrageous.
<marahin>
haha :) yeah it is, it's just that I find this gem particularly easy, simple and comfortable to use
<adam12>
I would wrap it in a module. I don't see anything wrong with the way your'e doing it, per-say.
<marahin>
that's nice to hear, thank you adam12.
bhaak has joined #ruby
kavanagh has quit [Remote host closed the connection]
kavanagh has joined #ruby
LoneHermit has quit [Remote host closed the connection]
evansbee has quit [Ping timeout: 244 seconds]
MrBusiness has quit [Ping timeout: 260 seconds]
cajone has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
jas02 has quit [Quit: jas02]
cajone has joined #ruby
startupality has joined #ruby
Nilium has quit [Remote host closed the connection]
jas02 has joined #ruby
Nilium has joined #ruby
Lord_of_Life has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
startupality has quit [Quit: startupality]
jas02 has quit [Client Quit]
LoneHermit has joined #ruby
diegoaguilar has quit [Ping timeout: 244 seconds]
Nilium has quit [Remote host closed the connection]
Nilium has joined #ruby
Lord_of_Life has joined #ruby
hahuang62 has joined #ruby
zacts has quit [Read error: Connection reset by peer]
mattwashere has quit []
Nilium has quit [Remote host closed the connection]
Nilium has joined #ruby
hahuang62 has quit [Ping timeout: 250 seconds]
cajone has quit [Ping timeout: 276 seconds]
Gasher has joined #ruby
pawnbox has joined #ruby
Lord_of_Life has quit [Ping timeout: 250 seconds]
xall_ has joined #ruby
<Dimik>
how can i split a string by 2 words
diegoaguilar has joined #ruby
jhack has joined #ruby
<shevy>
Dimik you can use regexes in .split()
<jhass>
Dimik: example input and desired output please
vuoto has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 240 seconds]
nankyoku_ has quit [Remote host closed the connection]
<Dimik>
x = "i have 4 words”
<Dimik>
x.split.count
jaguarmagenta has quit [Remote host closed the connection]
<Dimik>
4
Beverage has joined #ruby
<Dimik>
i want to break x into array of 2 words or just get the first 2 words from x
startupality has joined #ruby
<Dimik>
ah
<Dimik>
shevy, thank you
BTRE has quit [Quit: Leaving]
<Dimik>
x.split.first(2) did the trick
<tobiasvl>
Dimik: just x.split[0..1]
<tobiasvl>
or that
<tobiasvl>
yes
<Dimik>
thank you
roamingdog has joined #ruby
last_staff has quit [Quit: last_staff]
Wsewolod has quit [Ping timeout: 250 seconds]
mdw_ has quit [Quit: Sleeping Zzzzz]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
diegoaguilar has quit [Ping timeout: 244 seconds]
cajone has joined #ruby
startupality has quit [Quit: startupality]
FooMunki has joined #ruby
startupality has joined #ruby
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
genpaku has quit [Ping timeout: 244 seconds]
genpaku has joined #ruby
dcunit3d has joined #ruby
Xiti has quit [Quit: Xiti]
<pilne>
hrm, i'm not sure i'm a fan of TDD, while i like using tests, i don't feel comfortable letting the test lead my code if that makes sense?
startupality has quit [Client Quit]
<shevy>
yes
KnownSyntax_ has quit [Quit: Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
<shevy>
poetry does not need tests
<pilne>
and i've always tended to code in ways that put checks on data within the basic code itself.
Lord_of_Life has joined #ruby
<raldu>
shevy: nice comparison
<raldu>
I also tend to think that programming, especially with ruby is very, very similar to writing a very long, complicated essay.
SilverKey has joined #ruby
<raldu>
I feel like I do not need to know the math, save for some complicated parts that make most use of math.
spiette has quit [Quit: :qa!]
<Dimik>
i always prefered code ninja term to code poet
<shevy>
raldu yeah; well it can be a question of when and where and how to test anyway. Even if you use poetry, if you need to fly to the Mars, you want to ensure that things work alright, even in code that is poetry
startupality has joined #ruby
BTRE has joined #ruby
cdg has joined #ruby
<shevy>
how many possibilities do we have now? ... rspec... bacon... TDD (is that unit testing?) ... BDD ... minispec.. capysomething? No idea, I forgot several probably
chipotle has joined #ruby
<pilne>
i just did my first tutorial example, very simple one mind you, but the test suite was 2x the size of the basic class implemented to be able to test.
Xiti has joined #ruby
<Dimik>
capybara
BTRE has quit [Read error: Connection reset by peer]
<Dimik>
cucumber
BTRE has joined #ruby
<pilne>
yes, it is using unit::test, i've heard a lot of good about cucumber and rspec, and glanced at capybara
<raldu>
shevy: I acknowledge your point. however my comment was totally unrelated to testing. you can even have tests, so to speak with essays.
adgtl has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
startupality has quit [Quit: startupality]
ur5us has joined #ruby
sp4rrow has joined #ruby
startupality has joined #ruby
marr has joined #ruby
adgtl has joined #ruby
MrBusiness has joined #ruby
Lord_of_Life has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
ur5us has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
sp4rrow has quit [Client Quit]
dcunit3d has quit [Ping timeout: 258 seconds]
zacts has quit [Quit: WeeChat 1.5]
TomyLobo has joined #ruby
MrBusiness has quit [Ping timeout: 272 seconds]
Nilium has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
Nilium has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
SirOliver has joined #ruby
<shevy>
shakespeare-driven testing
<jhass>
shevy: so you write tests in SPL?
<shevy>
what is SPL?
Lord_of_Life has quit [Ping timeout: 250 seconds]
miqlas-H has joined #ruby
Lord_of_Life has joined #ruby
someish has quit [Quit: someish]
<jhass>
the shakespeare programming language, obviously
kavanagh has quit [Quit: That's all folks!]
garrulous_goose has quit [Quit: My Mac has gone to sleep. ZZZzzz…]