sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
sdouglas has joined #ruby-lang
momomomomo has joined #ruby-lang
havenwood has quit []
sonander has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
temple3188 has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hakunin_ has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 245 seconds]
sonander has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
sdouglas has joined #ruby-lang
ddv has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 240 seconds]
aero224_ has joined #ruby-lang
T_Dog has joined #ruby-lang
<T_Dog>
Oh hey
<T_Dog>
is anyone around at the moment?
<centrx>
Quite
aero224 has quit [Ping timeout: 240 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby-lang
<centrx>
Actually I take that back
<centrx>
You'll have to ask a question to find out
momomomomo has quit [Client Quit]
MikaAK has joined #ruby-lang
<centrx>
I guess it turns out I am the only one around after all.
sarkyniin has joined #ruby-lang
sarkyniin has quit [Client Quit]
<zenspider>
mistym: oi. yt?
<mistym>
zenspider: Yep!
maurizioo has joined #ruby-lang
vintik has quit [Remote host closed the connection]
<centrx>
drbrain, FYI the Mechanize rubygems page links to mechanize.rubyforge.net for documentation, which no longer exists
maurizioo has quit []
nfsnobody has joined #ruby-lang
momomomomo has joined #ruby-lang
majjoha has joined #ruby-lang
existensil has joined #ruby-lang
<majjoha>
I have an array of methods as symbols that I want to delegate to an object. def_delegators doesn't accept an array, so what would be the prettiest solution for me? Just do an each and use def_delegator for every item, or can I somehow pass the array to def_delegators in a painless way?
aero224 has joined #ruby-lang
qq17 has joined #ruby-lang
emmesswhy has joined #ruby-lang
<centrx>
majjoha, You want to delegate each method named in the array?
<majjoha>
Exactly.
tkuchiki has joined #ruby-lang
aero224_ has quit [Ping timeout: 240 seconds]
aero224_ has joined #ruby-lang
T_Dog has quit [Ping timeout: 264 seconds]
existensil has quit [Read error: Connection reset by peer]
<majjoha>
centrx, so right now I am basically doing something similar to this: %i(to_s to_i to_a).each { |method| def_delegator :magic_object, method }
existensil has joined #ruby-lang
<majjoha>
Where the array is a constant defined in a module in another file, though.
enebo has quit [Quit: enebo]
<centrx>
majjoha, That seems like the right solution
<centrx>
majjoha, You could also use the delegate method from ActiveSupport/Rails. It supports passing multiple method names
toastynerd has quit [Remote host closed the connection]
lolmaus has joined #ruby-lang
<zenspider>
mistym: sorry. got distracted. am I crossing wires? do you work on melpa? or just homebrew?
<majjoha>
centrx, I'd like to try to avoid ActiveSupport for this project I am working on, so I guess I'll just keep iterating over each element. Thanks!
aero224 has quit [Ping timeout: 256 seconds]
<zenspider>
man factor is a wierd language.
<mistym>
zenspider: Just homebrew. I actually am not familiar with melpa!
<zenspider>
glad to see it is back on its feet
aero224 has joined #ruby-lang
<zenspider>
mistym: melpa is one of the package repos for emacs
bantic has joined #ruby-lang
aero224_ has quit [Ping timeout: 272 seconds]
bantic has quit [Client Quit]
<mistym>
zenspider: Ah, okay
thmzlt has joined #ruby-lang
<majjoha>
centrx: I actually just did some more digging, and I can apparently pass a hash to delegate, so I can write delegate Nice::Methods => :my_object, and it accepts an array. Hooray.
karamazov has joined #ruby-lang
mistym has quit [Remote host closed the connection]
majjoha has quit [Quit: Lost terminal]
momomomomo has quit [Quit: momomomomo]
saarinen has quit [Quit: saarinen]
bruno- has joined #ruby-lang
vpretzel has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
bruno- has quit [Ping timeout: 272 seconds]
Sgeo has joined #ruby-lang
aero224 has quit [Remote host closed the connection]
mistym has joined #ruby-lang
aero224 has joined #ruby-lang
vintik has joined #ruby-lang
Miphix has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
|jemc| has quit [Ping timeout: 240 seconds]
ap4y has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
Asher has quit [Quit: Leaving.]
Asher has joined #ruby-lang
bahar has quit [Changing host]
bahar has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
alexju has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
hakunin_ has quit []
sdouglas has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
thmzlt has quit []
Averna has joined #ruby-lang
vintik has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
lsegal has joined #ruby-lang
bruno- has joined #ruby-lang
yatish27 has joined #ruby-lang
T_Dog has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby-lang
Cakey has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby-lang
adaleigh has joined #ruby-lang
gix has joined #ruby-lang
stardiviner has joined #ruby-lang
pixelhandler has quit [Quit: pixelhandler]
vintik has joined #ruby-lang
aero224 has quit [Remote host closed the connection]
vintik has quit [Ping timeout: 256 seconds]
aero224 has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
wallerdev has joined #ruby-lang
aero224 has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
qq17 has quit [*.net *.split]
sonander has quit [*.net *.split]
CaptainJet has quit [*.net *.split]
apeiros has quit [*.net *.split]
io_syl has quit [*.net *.split]
miqui has quit [*.net *.split]
danijoo has quit [*.net *.split]
FastJack has quit [*.net *.split]
kith has quit [*.net *.split]
Mellett68 has quit [*.net *.split]
Benny1992 has quit [*.net *.split]
kaiza has quit [*.net *.split]
dvorak has quit [*.net *.split]
lucas has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
darix has quit [*.net *.split]
tsou has quit [*.net *.split]
jstemmer has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
epitron has quit [*.net *.split]
mame1 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
Reen has quit [*.net *.split]
_mh_ has quit [*.net *.split]
lucas has joined #ruby-lang
Benny1992 has joined #ruby-lang
dvorak has joined #ruby-lang
qq17 has joined #ruby-lang
kith has joined #ruby-lang
tsou has joined #ruby-lang
FastJack has joined #ruby-lang
apeiros has joined #ruby-lang
darix has joined #ruby-lang
miqui has joined #ruby-lang
sonander has joined #ruby-lang
yeltzooo has joined #ruby-lang
CaptainJet has joined #ruby-lang
Mellett68 has joined #ruby-lang
kaiza has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
KillerFox has joined #ruby-lang
_mh_ has joined #ruby-lang
danijoo has joined #ruby-lang
Reen has joined #ruby-lang
epitron has joined #ruby-lang
mykoweb has joined #ruby-lang
ddfreyne has joined #ruby-lang
jstemmer has joined #ruby-lang
mame1 has joined #ruby-lang
bruno- has joined #ruby-lang
|jemc| has joined #ruby-lang
aero224 has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
vintik has joined #ruby-lang
centrx has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
aero224 has quit [Ping timeout: 240 seconds]
aero224 has joined #ruby-lang
centrx has quit [Client Quit]
bhrgunatha has joined #ruby-lang
adaleigh has quit [Remote host closed the connection]
aero224 has quit [Ping timeout: 272 seconds]
adaleigh has joined #ruby-lang
theharshest has quit [Quit: This computer has gone to sleep]
adaleigh has quit [Ping timeout: 240 seconds]
bhrgunatha has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140611075517]]
aero224 has joined #ruby-lang
mame1 has quit [*.net *.split]
jstemmer has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
epitron has quit [*.net *.split]
Reen has quit [*.net *.split]
danijoo has quit [*.net *.split]
_mh_ has quit [*.net *.split]
KillerFox has quit [*.net *.split]
Olipro has quit [*.net *.split]
jackhammer2022 has quit [*.net *.split]
darix has quit [*.net *.split]
qq17 has quit [*.net *.split]
kith has quit [*.net *.split]
Benny1992 has quit [*.net *.split]
araujo has quit [*.net *.split]
Rylee has quit [*.net *.split]
nirix has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
pabs has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
drbrain has quit [*.net *.split]
anekos_ has quit [*.net *.split]
felipe has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
ur5us has quit [*.net *.split]
charliesome has quit [*.net *.split]
gruzzlymug has quit [*.net *.split]
nofxx has quit [*.net *.split]
heftig has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
jsullivandigs has quit [*.net *.split]
JokerDoom has quit [*.net *.split]
cyndis has quit [*.net *.split]
marcel has quit [*.net *.split]
javilm has quit [*.net *.split]
tpope has quit [*.net *.split]
wnd has quit [*.net *.split]
michd has quit [*.net *.split]
kro_ has quit [*.net *.split]
th2389_ has quit [*.net *.split]
joelroa has quit [*.net *.split]
llakey has quit [*.net *.split]
seanhagen has quit [*.net *.split]
jlpeters has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
Guest42191 has quit [*.net *.split]
jperry has quit [*.net *.split]
zenspider has quit [*.net *.split]
clamstar has quit [*.net *.split]
lupine has quit [*.net *.split]
tris has quit [*.net *.split]
Shoffner_ has quit [*.net *.split]
whitequark has quit [*.net *.split]
bcardarella_ has quit [*.net *.split]
antonishen has quit [*.net *.split]
ruskie has quit [*.net *.split]
badeball has quit [*.net *.split]
priodev has quit [*.net *.split]
mattyohe has quit [*.net *.split]
dlackty_ has quit [*.net *.split]
eam has quit [*.net *.split]
_ko1 has quit [*.net *.split]
eban has quit [*.net *.split]
hplar has quit [*.net *.split]
lianj has quit [*.net *.split]
allolex has quit [*.net *.split]
lacrosse_ has quit [*.net *.split]
floyd2 has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
postmodern has quit [*.net *.split]
zenojis has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
Xzyx987X_ has quit [*.net *.split]
jacky has quit [*.net *.split]
ozzloy has quit [*.net *.split]
verto has quit [*.net *.split]
bnagy has quit [*.net *.split]
levifig has quit [*.net *.split]
Derander_ has quit [*.net *.split]
nisstyre has quit [*.net *.split]
Mopman has quit [*.net *.split]
djinni` has quit [*.net *.split]
shennyg__ has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
cschneid has quit [*.net *.split]
freedrull has quit [*.net *.split]
chancancode has quit [*.net *.split]
styped_____ has quit [*.net *.split]
msch has quit [*.net *.split]
sonne has quit [*.net *.split]
moogumbo has quit [*.net *.split]
kramsee_ has quit [*.net *.split]
ryotarai has quit [*.net *.split]
acalewin has quit [*.net *.split]
jamo_ has quit [*.net *.split]
akahn has quit [*.net *.split]
DefV has quit [*.net *.split]
manveru has quit [*.net *.split]
nibbo has quit [*.net *.split]
paulog has quit [*.net *.split]
rickruby__ has quit [*.net *.split]
soraher_ has quit [*.net *.split]
ohsix has quit [*.net *.split]
joshsz has quit [*.net *.split]
nifoc has quit [*.net *.split]
jevs has quit [*.net *.split]
Macacity has quit [*.net *.split]
Paradox has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
lhz has quit [*.net *.split]
xsdg has quit [*.net *.split]
Mellett68 has quit [*.net *.split]
miqui has quit [*.net *.split]
kaiza has quit [*.net *.split]
CaptainJet has quit [*.net *.split]
sonander has quit [*.net *.split]
T_Dog has quit [*.net *.split]
gix has quit [*.net *.split]
nathanstitt has quit [*.net *.split]
alexju has quit [*.net *.split]
existensil has quit [*.net *.split]
symm- has quit [*.net *.split]
chaos___________ has quit [*.net *.split]
snsei has quit [*.net *.split]
Kabaka has quit [*.net *.split]
hackeron has quit [*.net *.split]
faces has quit [*.net *.split]
jtperreault has quit [*.net *.split]
thoolihan has quit [*.net *.split]
aarellano has quit [*.net *.split]
Xney has quit [*.net *.split]
musl_ has quit [*.net *.split]
neurodam1ge has quit [*.net *.split]
igalic has quit [*.net *.split]
serhart has quit [*.net *.split]
lguardiola has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
saltsa has quit [*.net *.split]
eval-in__ has quit [*.net *.split]
bougyman has quit [*.net *.split]
shtirlic has quit [*.net *.split]
jayne has quit [*.net *.split]
Silex has quit [*.net *.split]
paul_k has quit [*.net *.split]
Jamo has quit [*.net *.split]
GitNick has quit [*.net *.split]
ironcamel has quit [*.net *.split]
perry has quit [*.net *.split]
brixen has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
sindork has quit [*.net *.split]
TTilus has quit [*.net *.split]
oddmunds has quit [*.net *.split]
masscrx has quit [*.net *.split]
GaelanAintAround has quit [*.net *.split]
fumduq has quit [*.net *.split]
skinny_much has quit [*.net *.split]
unsymbol has quit [*.net *.split]
cid404 has quit [*.net *.split]
[dmp] has quit [*.net *.split]
justinmcp has quit [*.net *.split]
joevandyk has quit [*.net *.split]
blowmage has quit [*.net *.split]
mahlon has quit [*.net *.split]
webhat has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
ggherdov has quit [Max SendQ exceeded]
MikaAK has quit [Ping timeout: 260 seconds]
sonander has joined #ruby-lang
ggherdov has joined #ruby-lang
hackeron has joined #ruby-lang
aero224 has quit [Ping timeout: 240 seconds]
jackhammer2022 has joined #ruby-lang
nofxx has joined #ruby-lang
symm- has joined #ruby-lang
gruzzlymug has joined #ruby-lang
yfeldblum has joined #ruby-lang
gix has joined #ruby-lang
araujo has joined #ruby-lang
charliesome has joined #ruby-lang
qq17 has joined #ruby-lang
darix has joined #ruby-lang
kaiza has joined #ruby-lang
Mellett68 has joined #ruby-lang
T_Dog has joined #ruby-lang
heftig has joined #ruby-lang
existensil has joined #ruby-lang
postmodern has joined #ruby-lang
marcel has joined #ruby-lang
ur5us has joined #ruby-lang
snsei has joined #ruby-lang
faces has joined #ruby-lang
kith has joined #ruby-lang
chaos___________ has joined #ruby-lang
alexju has joined #ruby-lang
miqui has joined #ruby-lang
jsullivandigs has joined #ruby-lang
Kabaka has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
CaptainJet has joined #ruby-lang
zenojis has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
Benny1992 has joined #ruby-lang
nathanstitt has joined #ruby-lang
nirix has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
jacky has joined #ruby-lang
shaman42_ has joined #ruby-lang
pabs has joined #ruby-lang
Xney has joined #ruby-lang
drbrain has joined #ruby-lang
anekos_ has joined #ruby-lang
musl_ has joined #ruby-lang
yugui_zzz has joined #ruby-lang
felipe has joined #ruby-lang
Rylee has joined #ruby-lang
lacrosse_ has joined #ruby-lang
cyndis has joined #ruby-lang
JokerDoom has joined #ruby-lang
floyd2 has joined #ruby-lang
allolex has joined #ruby-lang
samuelkadolph has joined #ruby-lang
eban has joined #ruby-lang
lianj has joined #ruby-lang
hplar has joined #ruby-lang
_ko1 has joined #ruby-lang
eam has joined #ruby-lang
dlackty_ has joined #ruby-lang
mattyohe has joined #ruby-lang
badeball has joined #ruby-lang
ruskie has joined #ruby-lang
priodev has joined #ruby-lang
bcardarella_ has joined #ruby-lang
whitequark has joined #ruby-lang
antonishen has joined #ruby-lang
Shoffner_ has joined #ruby-lang
tris has joined #ruby-lang
bnagy has joined #ruby-lang
ozzloy has joined #ruby-lang
kro_ has joined #ruby-lang
nifoc has joined #ruby-lang
acalewin has joined #ruby-lang
lguardiola has joined #ruby-lang
llakey has joined #ruby-lang
javilm has joined #ruby-lang
nibbo has joined #ruby-lang
igalic has joined #ruby-lang
Paradox has joined #ruby-lang
oddmunds has joined #ruby-lang
perry has joined #ruby-lang
jayne has joined #ruby-lang
ramblinpeck has joined #ruby-lang
dhruvasagar has joined #ruby-lang
shennyg__ has joined #ruby-lang
chancancode has joined #ruby-lang
styped_____ has joined #ruby-lang
ohsix has joined #ruby-lang
Y_Ichiro has joined #ruby-lang
tpope has joined #ruby-lang
masscrx has joined #ruby-lang
manveru has joined #ruby-lang
Guest42191 has joined #ruby-lang
[dmp] has joined #ruby-lang
clamstar has joined #ruby-lang
serhart has joined #ruby-lang
Silex has joined #ruby-lang
GitNick has joined #ruby-lang
justinmcp has joined #ruby-lang
eval-in__ has joined #ruby-lang
joelroa has joined #ruby-lang
skinny_much has joined #ruby-lang
saltsa has joined #ruby-lang
Mopman has joined #ruby-lang
joevandyk has joined #ruby-lang
levifig has joined #ruby-lang
zenspider has joined #ruby-lang
jtperreault has joined #ruby-lang
jamo_ has joined #ruby-lang
seanhagen has joined #ruby-lang
ironcamel has joined #ruby-lang
nisstyre has joined #ruby-lang
verto has joined #ruby-lang
djinni` has joined #ruby-lang
dostoyevsky has joined #ruby-lang
soraher_ has joined #ruby-lang
cschneid has joined #ruby-lang
webhat has joined #ruby-lang
DarkBushido has joined #ruby-lang
Jamo has joined #ruby-lang
blowmage has joined #ruby-lang
wnd has joined #ruby-lang
neurodam1ge has joined #ruby-lang
akahn has joined #ruby-lang
michd has joined #ruby-lang
fumduq has joined #ruby-lang
moogumbo has joined #ruby-lang
kramsee_ has joined #ruby-lang
Derander_ has joined #ruby-lang
bougyman has joined #ruby-lang
paul_k has joined #ruby-lang
jlpeters has joined #ruby-lang
DefV has joined #ruby-lang
thoolihan has joined #ruby-lang
joshsz has joined #ruby-lang
freedrull has joined #ruby-lang
ryotarai has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
cid404 has joined #ruby-lang
xsdg has joined #ruby-lang
rickruby__ has joined #ruby-lang
brixen has joined #ruby-lang
jperry has joined #ruby-lang
Kuukunen has joined #ruby-lang
lupine has joined #ruby-lang
sindork has joined #ruby-lang
sonne has joined #ruby-lang
lhz has joined #ruby-lang
mahlon has joined #ruby-lang
th2389_ has joined #ruby-lang
shtirlic has joined #ruby-lang
Macacity has joined #ruby-lang
paulog has joined #ruby-lang
jevs has joined #ruby-lang
aarellano has joined #ruby-lang
TTilus has joined #ruby-lang
unsymbol has joined #ruby-lang
msch has joined #ruby-lang
ggherdov has quit [Max SendQ exceeded]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
mame1 has joined #ruby-lang
jstemmer has joined #ruby-lang
KillerFox has joined #ruby-lang
ddfreyne has joined #ruby-lang
danijoo has joined #ruby-lang
epitron has joined #ruby-lang
_mh_ has joined #ruby-lang
Reen has joined #ruby-lang
Olipro has joined #ruby-lang
Olipro has quit [Max SendQ exceeded]
Olipro has joined #ruby-lang
ascarter has joined #ruby-lang
lolmaus has joined #ruby-lang
jxie has quit [Ping timeout: 260 seconds]
kirin` has quit [Ping timeout: 256 seconds]
jxie has joined #ruby-lang
kirin` has joined #ruby-lang
RobertBirnie has joined #ruby-lang
ggherdov has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
kirin` has quit [Ping timeout: 260 seconds]
kirin` has joined #ruby-lang
ta_ has joined #ruby-lang
ta has quit [Ping timeout: 240 seconds]
vpretzel has quit [Quit: Adios!]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cakey has quit [Ping timeout: 256 seconds]
Cakey has joined #ruby-lang
Travis__ has joined #ruby-lang
T_Dog has quit [Ping timeout: 264 seconds]
cornerman has joined #ruby-lang
macsplean1 has joined #ruby-lang
T_Dog has joined #ruby-lang
cornerma1 has quit [Ping timeout: 256 seconds]
<macsplean1>
anybody have any idea what happened? a lot of my ruby files had some text inserted somehow that breaks them. there is a "<<<<<<< HEAD" line and later on ">>>>>>>" followed by a bunch of random-looking numbers & letters
yfeldblu_ has joined #ruby-lang
Travis__ has quit [Ping timeout: 250 seconds]
mistym has quit [Remote host closed the connection]
snoopybbt has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
CaptainJet has quit []
Cages has joined #ruby-lang
<Cages>
Hi all.
<T_Dog>
Oh hey cages
<T_Dog>
how is it going
<Cages>
Good. I am new to Ruby and programming in general. Was hoping for some help with a quick question.
nathanstitt has quit [Quit: I growing sleepy]
<T_Dog>
Dude yeah sure
<T_Dog>
I'm just learning ruby for now
<T_Dog>
but I have used python for a while:)
<Cages>
I am wanting to change my defauly prompt from the simple prompt to the inf-ruby prompt on a MAC
<Cages>
not sure how to do this
<T_Dog>
hmm I'm a windows user dude
<T_Dog>
so I dunno
<T_Dog>
what do you mean by your promt?
<Cages>
Ok
<Cages>
Like >>
<Cages>
or, what i want, is irb(main):001:0>
<T_Dog>
ohhh
<T_Dog>
um shit
<T_Dog>
found it!
<T_Dog>
try loading irb
yatish27 has quit [Remote host closed the connection]
AOP_ has joined #ruby-lang
yatish27 has joined #ruby-lang
amerine_ has joined #ruby-lang
sdouglas has joined #ruby-lang
D9 has quit [Ping timeout: 240 seconds]
<Cages>
ol
<Cages>
ok*
<Cages>
done
godd2 has joined #ruby-lang
amerine has quit [Ping timeout: 260 seconds]
yatish27 has quit [Ping timeout: 256 seconds]
<T_Dog>
dide
<T_Dog>
dude
<T_Dog>
didt it work?
aero224 has joined #ruby-lang
djbkd has joined #ruby-lang
braxtonplaxco has joined #ruby-lang
mistym has joined #ruby-lang
braxtonplaxco has left #ruby-lang [#ruby-lang]
hahuang61 has joined #ruby-lang
yfeldblum has joined #ruby-lang
bruno- has joined #ruby-lang
aero224 has quit [Remote host closed the connection]
adaleigh has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
spuk_ has quit [Quit: Human beings were created by water to transport it uphill.]
aero224_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
vintik has quit [Remote host closed the connection]
_ht has joined #ruby-lang
mistym has joined #ruby-lang
aero224 has joined #ruby-lang
aero224_ has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby-lang
theharshest has joined #ruby-lang
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby-lang
yatish27 has joined #ruby-lang
macsplean1 has quit [Ping timeout: 240 seconds]
Cakey has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
gruzzlymug has quit [Ping timeout: 272 seconds]
yatish27 has quit [Ping timeout: 240 seconds]
aero224 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
landodger has joined #ruby-lang
snsei has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
snsei has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
yliu has joined #ruby-lang
stardiviner has quit [Ping timeout: 260 seconds]
toastynerd has quit [Remote host closed the connection]
zenojis has quit [Quit: btc-e]
wallerdev has quit [Quit: wallerdev]
Cages has quit [Quit: Page closed]
kiddorails has joined #ruby-lang
kyb3r_ has joined #ruby-lang
stardiviner has joined #ruby-lang
zenojis has joined #ruby-lang
stardiviner has quit [Read error: Connection reset by peer]
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
heftig has quit [Quit: Quitting]
bruno- has joined #ruby-lang
ur5us has quit [Ping timeout: 272 seconds]
relix has joined #ruby-lang
zenojis is now known as xenogis
snsei has quit [Ping timeout: 240 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
<banisterfiend>
yorickpeterse do you use pry as your production console?
<yorickpeterse>
Yup
<yorickpeterse>
The one thing we all agree on at the office is Pry > IRB
<yorickpeterse>
pry, pry-doc and pry-theme are pretty much in all our dev Gem groups
<dangerousdave>
I have a couple of classes, both of which make use of external api's. What is the best way to manage that api? should each class establish their own handle so they can operate independantly?
<DefV>
banisterfiend: but pry does the same thing?
<yorickpeterse>
dangerousdave: one way to handle this is to pass in a client instance in the constructor
<dangerousdave>
perhaps a global? i know thats frowned on, but perhaps its appropriate here?
stayarrr has quit [Quit: Leaving...]
<DefV>
banisterfiend: it's what you expect from a shell.. ctrl-c cancels the current line (or running program), ctrl-d exits the shell
<dangerousdave>
yorickpeterse, yes, that would do it, but the class would be moore coupled as a consequence
<banisterfiend>
DefV no, ^D breaks out of the current expression (if you're in an expression)
<yorickpeterse>
dangerousdave: either it has an explicit dependency, or it has an implicit one
<yorickpeterse>
In the end it will need an API client instance of some sort
<dangerousdave>
yorickpeterse, true, thanks
<yorickpeterse>
You can have it create its own instances, but then you probably need a global configuration object
<yorickpeterse>
Which in turn will prevent you from using independant clients in the same runtime
<DefV>
banisterfiend: not in my shell
<banisterfiend>
DefV not sure how that's possible, could you record a showterm.io ?
<yorickpeterse>
^C doesn't kill IRB, only ^D does
kiddorails has quit [Remote host closed the connection]
kiddorails has quit [Remote host closed the connection]
<DefV>
and in the end kill the shell with ctrl-d
<banisterfiend>
DefV is that pry?
<DefV>
no thats just zsh
<DefV>
but it works the same in pry
<DefV>
ctrl-c = exit expression
<DefV>
ctrl-d = quit pry
Missphoenix has joined #ruby-lang
kiddorails has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
<dangerousdave>
yorickpeterse, I also have yaml configuration file that is read in, and the values are used throughout multiple classes. I am thinking some sort of singleton to manage global config and apis?
<yorickpeterse>
dangerousdave: I'd suggest against using any globals, it makes it much harder to use multiple, separate client instances
<yorickpeterse>
Also makes multi-threading and testing more of a PITA
<yorickpeterse>
I typically do something like this:
<yorickpeterse>
If the newbie channel gets popular it will have the same problem
<DefV>
yorickpeterse: I made that point
<yorickpeterse>
A dedicated channel however isn't as bad as it may sound
<yorickpeterse>
While I wouldn't call this channel unwelcoming in any way, it depends on who you're talking to
<yorickpeterse>
Honestly I don't think it's a bad idea
<maloik>
maybe if the first thing they see is yorickpeterse going off at mongo... :-)
<yorickpeterse>
that only happens once a week
<maloik>
:D
<yorickpeterse>
Plus the sooner one gets familiar with the odd behaviour of devs the better
<yorickpeterse>
They'll be stuck with it for a few decades anyway
<DefV>
freenode already has 1 irc channel too many
<DefV>
1 ruby irc hannel
<yorickpeterse>
I was about to ask if that was #node
* yorickpeterse
runs
kiddorails has joined #ruby-lang
<DefV>
yes
<zwischenzup2>
i'm a newbie and everyone i've ever encountered here has been very polite and helpful
<yorickpeterse>
zwischenzup2: You're dealing with encodings, we can feel the pain :P
t_ has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<maloik>
next up: timezones
<yorickpeterse>
Either way, I think a separate channel for newbies isn't a very bad idea
<yorickpeterse>
It's a pretty specific target group
<maloik>
it's not a bad idea per se but it's hard to get right
<yorickpeterse>
(these would probably be the people that don't know what a method is)
<maloik>
and as DefV said there's no point at which you'll "graduate"
t_ has joined #ruby-lang
<maloik>
are you going to be sent out for asking too advanced questions? pointed around to different channels if your level doesn't match the channel's etc?
<maloik>
telling people to just go ahead and ask, and asking people to mind their tone when they're unwelcoming (in a friendly way) would go a long way
<yorickpeterse>
I think that once you understand the concept of sarcasm you're ready for #ruby-lang
yagooar has quit [Remote host closed the connection]
thmzlt has left #ruby-lang [#ruby-lang]
yagooar has joined #ruby-lang
<yorickpeterse>
which means whitequark probably isn't allowed in here
yfeldblum has joined #ruby-lang
<maloik>
you're so unwelcoming :(
<yorickpeterse>
bite me
stayarrr has quit [Quit: Leaving...]
Benny1992 has quit [Quit: leaving]
Benny1992 has joined #ruby-lang
skade has joined #ruby-lang
<yorickpeterse>
Come to think of it, some sort of wiki might not be a bad idea
<yorickpeterse>
e.g. for the /r/amsterdam subreddit we get so many people askign the same stuff that we have a wonderful wiki
<yorickpeterse>
up to the point where "HAVE YOU READ THE WIKI????" is becoming a bit of a running gag
tkuchiki has quit [Remote host closed the connection]
<Cages>
tried that, apparently that either didn't work or i messed up because my alias did not work and the bash file is messing with my mac terminal for no apparent reason
<Mon_Ouie>
You didn't show what command you were running though
<centrx>
Did you look at irb --help
<Cages>
What command?
<Cages>
centrx: Yes
<centrx>
--inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs.
<Cages>
second is to get inf-ruby prompt as my default
<RonP>
oh! another question. ruby 2.1 will "marry" with rails 4.1 ?
amerine_ is now known as amerine
<centrx>
Is that the technical term?
saarinen has joined #ruby-lang
<whitequark>
RonP: yes
<RonP>
thanks
tenderlove has joined #ruby-lang
gpg_ has quit [Quit: Page closed]
<Cages>
does anyone know of a possible solution? I am new to programming. Just trying to get things set up.
|jemc| has joined #ruby-lang
<centrx>
Cages, Those bash error messages, are they aliases in your .bashrc?
<Cages>
Yes
<Cages>
i believe so
<Cages>
i was going off of a tutorial, did not really understand it
kek has quit [Remote host closed the connection]
<centrx>
Cages, Okay, so remove those lines from your .bashrc, that will clear that error message
<centrx>
Cages, Then see if those two command-line options work with the irb command
<centrx>
Cages, if they do, you can add the command with the right argument to your .bashrc, so you will be able to just type "irb" without the --argument
|jemc| has quit [Read error: Connection reset by peer]
|jemc| has joined #ruby-lang
<Cages>
okay i will try one second
Cakey has quit [Ping timeout: 272 seconds]
touzin1 has joined #ruby-lang
Scymex has quit [Ping timeout: 240 seconds]
<Cages>
deleted from bashrc
<Cages>
i still get two of the four lines
<Cages>
so i think they must be on another file as well
<Cages>
hmm
scmx has joined #ruby-lang
monees_ has joined #ruby-lang
monees has quit [Ping timeout: 260 seconds]
<centrx>
Cages, Possibly .profile
<centrx>
Or /etc/bashrc or /etc/profile
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<Cages>
ty
<RonP>
cages you may need to relog?
<Cages>
RonP: what is that?
Guest42191 has quit [Read error: Connection reset by peer]
<RonP>
to start the shell over again without the profile/rc items you removed
Guest42191 has joined #ruby-lang
<Cages>
just restarting the terminal?
Cakey has joined #ruby-lang
monees_ has quit [Remote host closed the connection]
<RonP>
right logout then login again.. or re-ssh to the box etc. it's worth a shot