<eddloschi>
Hi everyone. Quick question, what's the best way to clear a Hash, using the clear method or replacing it with a new one?
CoreData has quit [Ping timeout: 260 seconds]
bf4 has quit [Ping timeout: 272 seconds]
makoto_ has quit [Ping timeout: 264 seconds]
CoreData has joined #ruby-lang
simoz has quit [Ping timeout: 250 seconds]
chukdisc has quit [Ping timeout: 240 seconds]
simoz has joined #ruby-lang
michaeldeol has joined #ruby-lang
io_syl has quit []
h0rrorvacui has joined #ruby-lang
simoz2 has joined #ruby-lang
simoz has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
x0f_ has quit [Ping timeout: 246 seconds]
lfox has quit [Quit: ZZZzzz…]
DeProdigy has joined #ruby-lang
chukdisc has joined #ruby-lang
hogeo has joined #ruby-lang
bin8me has joined #ruby-lang
x0f has joined #ruby-lang
h0rrorvacui has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
michaeldeol has quit [Remote host closed the connection]
simoz2 has quit [Ping timeout: 240 seconds]
chukdisc has quit [Ping timeout: 240 seconds]
bin7me has quit [Ping timeout: 250 seconds]
seanlinsley has joined #ruby-lang
hogeo has quit [Ping timeout: 264 seconds]
bfleischer has joined #ruby-lang
fierycatnet has joined #ruby-lang
bfleischer has quit [Ping timeout: 240 seconds]
ttlnow has joined #ruby-lang
hogeo has joined #ruby-lang
shinnya has joined #ruby-lang
slyphon has quit [Quit: I REGRET NOTHiiiiiiiiiinnnngggg….]
cored has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
jxie has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
iliketur_ has quit [Quit: zzzzz…..]
tylersmith has quit [Remote host closed the connection]
unrealhoang has joined #ruby-lang
kek has quit [Remote host closed the connection]
chukdisc has joined #ruby-lang
unrealhoang has quit [Ping timeout: 252 seconds]
anulman has quit [Quit: Leaving.]
eddloschi has quit [Ping timeout: 272 seconds]
cored has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
ootoovak has quit [Quit: ootoovak]
anulman has joined #ruby-lang
krasnus has joined #ruby-lang
bin8me has quit [Read error: Connection reset by peer]
michaeldeol has quit [Ping timeout: 240 seconds]
cored has quit [Ping timeout: 240 seconds]
anulman has quit [Ping timeout: 260 seconds]
cored has joined #ruby-lang
bf4 has joined #ruby-lang
chukdisc has quit [Ping timeout: 272 seconds]
makoto_ has joined #ruby-lang
fijimunkii has joined #ruby-lang
tkuchiki has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
cnivolle_ has joined #ruby-lang
sevvie has joined #ruby-lang
makoto_ has quit [Ping timeout: 250 seconds]
bf4 has quit [Ping timeout: 272 seconds]
nathanstitt has joined #ruby-lang
michaeldeol has joined #ruby-lang
cnivolle has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
mistym_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
havenwood has joined #ruby-lang
brianpWins has quit [Ping timeout: 250 seconds]
mistym has quit [Quit: Leaving]
cored has quit [Ping timeout: 260 seconds]
GaelanAintAround is now known as Gaelan
Cakey has joined #ruby-lang
mistym_ has quit [Ping timeout: 260 seconds]
cnivolle_ has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 246 seconds]
Thanatermesis has joined #ruby-lang
hahuang65 has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
anulman has joined #ruby-lang
cnivolle has joined #ruby-lang
DeProdigy has quit [Ping timeout: 246 seconds]
anulman has quit [Ping timeout: 260 seconds]
anulman has joined #ruby-lang
hogeo has joined #ruby-lang
wallerdev has joined #ruby-lang
mistym has joined #ruby-lang
DeProdigy has joined #ruby-lang
anulman has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
lfox has joined #ruby-lang
amoli has quit [Ping timeout: 252 seconds]
<hahuang65>
sorry to bother, can someone mention me really quick? testing out a new plugin.
<krasnus>
hahuang65: mentioned ;)
<hahuang65>
krasnus: thanks
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
Lewis__ has joined #ruby-lang
saarinen has quit [Quit: saarinen]
Lewis__ has left #ruby-lang [#ruby-lang]
Lewix has quit [Disconnected by services]
lewix has joined #ruby-lang
hogeo has joined #ruby-lang
Lewix_ has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
JoelMcCracken has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
vpretzel has quit [Read error: Connection reset by peer]
<JoelMcCracken>
So, I was just looking at a compiled ERB template, and I blocks are appending their contents to _erbout. Is there some way to control this? I was hoping to use ERB as a way to capture large chunks of text, not necessarily generate a huge document in a single run
vpretzel has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
vpretzel_ has joined #ruby-lang
micalexander has joined #ruby-lang
<JoelMcCracken>
in order to do this, i'd need to get into some pretty hairy stuff. it seems like I'm just missing something
vpretzel has quit [Ping timeout: 250 seconds]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
anulman has joined #ruby-lang
coca_rails has joined #ruby-lang
michaeldeol has quit [Ping timeout: 252 seconds]
makoto_ has joined #ruby-lang
<JoelMcCracken>
oh; nevermind. I guess I was misunderstanding how scoping would change things.
kek has joined #ruby-lang
anulman has quit [Ping timeout: 250 seconds]
<JoelMcCracken>
It can be controlled fine by passing in a variable name
bf4 has joined #ruby-lang
DeProdigy has quit [Ping timeout: 260 seconds]
cesareferrari has joined #ruby-lang
makoto_ has quit [Ping timeout: 250 seconds]
bzalasky has joined #ruby-lang
kek has quit [Ping timeout: 272 seconds]
Markvilla has quit [Quit: Computer has gone to sleep.]
bf4 has quit [Ping timeout: 250 seconds]
alekst has quit [Ping timeout: 264 seconds]
hahuang65 has quit [Ping timeout: 272 seconds]
Markvilla has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
micalexander has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
hogeo_ has joined #ruby-lang
Markvilla has quit [Client Quit]
brianpWins has joined #ruby-lang
micalexander has quit [Ping timeout: 264 seconds]
JoelMcCracken has quit [Ping timeout: 253 seconds]
hogeo_ has quit [Ping timeout: 250 seconds]
coca_rails has quit [Remote host closed the connection]
UziMonkey has left #ruby-lang ["Leaving"]
bzalasky has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
sn0wb1rd_ has joined #ruby-lang
sn0wb1rd_ has quit [Client Quit]
simoz has joined #ruby-lang
joonty has joined #ruby-lang
bfleischer has joined #ruby-lang
unrealhoang has joined #ruby-lang
mistym has quit [Remote host closed the connection]
simoz has quit [Ping timeout: 260 seconds]
simoz2 has joined #ruby-lang
bfleischer has quit [Ping timeout: 250 seconds]
tylersmith has joined #ruby-lang
Gaelan is now known as GaelanAintAround
micalexander has joined #ruby-lang
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
io_syl has joined #ruby-lang
toertore has quit [Quit: Leaving]
hogeo has joined #ruby-lang
laphlaw has quit [Quit: Computer has gone to sleep.]
watarum has joined #ruby-lang
fierycatnet has quit []
simoz has joined #ruby-lang
hogeo has quit [Client Quit]
simoz2 has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
simoz2 has joined #ruby-lang
watarum has quit [Remote host closed the connection]
simoz has quit [Ping timeout: 250 seconds]
anulman has joined #ruby-lang
lewix has quit [Remote host closed the connection]
Galvatron has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
tylersmi_ has joined #ruby-lang
fijimunkii has quit [Ping timeout: 250 seconds]
bjh13 has joined #ruby-lang
anulman has quit [Ping timeout: 250 seconds]
jerrytgarcia has joined #ruby-lang
michaeldeol has joined #ruby-lang
simoz has joined #ruby-lang
simoz2 has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
simoz2 has joined #ruby-lang
michaeldeol has quit [Ping timeout: 240 seconds]
makoto_ has joined #ruby-lang
bfleischer has joined #ruby-lang
amerine has quit [Ping timeout: 264 seconds]
simoz has quit [Ping timeout: 272 seconds]
bf4 has joined #ruby-lang
amerine has joined #ruby-lang
makoto_ has quit [Ping timeout: 246 seconds]
toretore has joined #ruby-lang
saarinen has joined #ruby-lang
Lewix_ has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 272 seconds]
vpretzel_ has quit [Remote host closed the connection]
rikai_ has joined #ruby-lang
vpretzel has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
rue_XIV has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
digs has joined #ruby-lang
digs is now known as Guest29600
amerine has quit [Ping timeout: 252 seconds]
rue has quit [Ping timeout: 245 seconds]
rikai has quit [Ping timeout: 245 seconds]
amerine has joined #ruby-lang
vpretzel has quit [Ping timeout: 240 seconds]
lacrosse_ has quit [Ping timeout: 264 seconds]
lfox has quit [Quit: ZZZzzz…]
cesareferrari has quit []
hahuang65 has joined #ruby-lang
simoz2 has quit [Ping timeout: 260 seconds]
simoz has joined #ruby-lang
anulman has joined #ruby-lang
dik_dak has joined #ruby-lang
robbyoconnor has joined #ruby-lang
dik_dak has quit [Client Quit]
Cakey has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
nisstyre has joined #ruby-lang
mechanicles has joined #ruby-lang
vpretzel has joined #ruby-lang
fijimunkii has joined #ruby-lang
mechanicles has quit []
eponymi has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 260 seconds]
davejlong has quit [Quit: Leaving.]
JoelMcCracken has joined #ruby-lang
robonerd has quit [Ping timeout: 246 seconds]
chukdisc has joined #ruby-lang
h0rrorvacui has joined #ruby-lang
robonerd has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
Galvatron has left #ruby-lang [#ruby-lang]
Guest29600 has quit [Quit: Leaving...]
soba has joined #ruby-lang
michaeldeol has quit [Ping timeout: 264 seconds]
tylersmi_ has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby-lang
robbyoconnor has joined #ruby-lang
makoto_ has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
cmckni3 has joined #ruby-lang
cmckni3 has quit [Client Quit]
bf4 has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 264 seconds]
soba has quit [Ping timeout: 272 seconds]
lsegal has joined #ruby-lang
cmckni3 has joined #ruby-lang
cmckni3 has quit [Client Quit]
makoto_ has quit [Ping timeout: 240 seconds]
ecnalyr has quit [Ping timeout: 245 seconds]
bf4 has quit [Ping timeout: 264 seconds]
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
simoz has quit [Ping timeout: 241 seconds]
gianlucadv has joined #ruby-lang
charliesome has joined #ruby-lang
saarinen has quit [Quit: saarinen]
vpretzel_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
mistym has joined #ruby-lang
vpretzel has quit [Ping timeout: 250 seconds]
kitak_ has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 272 seconds]
mistym has quit [Ping timeout: 264 seconds]
gianlucadv has quit [Ping timeout: 260 seconds]
lewix has joined #ruby-lang
mistym has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
yfeldblum has quit [Remote host closed the connection]
bfleischer has quit [Ping timeout: 252 seconds]
r0bby_ has quit [Read error: Connection reset by peer]
<maloik_>
stupid thing kept breaking tests until I used git bisect and found a good commit
cnivolle_ has joined #ruby-lang
<maloik_>
then they wouldn't break again
dhruvasagar has joined #ruby-lang
<maloik_>
computers :@
mrevd has joined #ruby-lang
io_syl has joined #ruby-lang
makoto_ has joined #ruby-lang
<maloik_>
ugh, redmine your killing me
<zzak>
;)
<maloik_>
seems owZ(r4Hjgfeq+DpYhq3v isnt a very good password for redmine
<zzak>
you can file a ticket on github/documenting-ruby/ruby too if it's only a doc bug
<zzak>
whichever is easier
<lianj>
maloik_: why no good?
<maloik_>
no clue
<mrevd>
hey all, newb question. i was under the impression that all variables are merely pointers. so that in this example the original string would be modified. but it seems like that is not the case. is this an exception or am i misunderstanding how variables work? original = "test"; " new = original; new += " 2"; puts original #=> test
<maloik_>
it won't let me in, that much is for sure
<maloik_>
even my new 20-character password without any special characters won't work, despite having activated the account
cnivolle has quit [Ping timeout: 252 seconds]
<whitequark>
mrevd: you are misunderstanding it a bit
<maloik_>
I think I'm just about done computering for the day :@
<whitequark>
foo += bar is equivalent to foo = foo + bar, except foo is only evaluated once
<zzak>
maloik_: i dont know the pw requirements, but we have a github issue tracker for our redmine
<whitequark>
otherwise you are correct
<mrevd>
ahh i see, += is not a method then… it's translated down. right?
<chris2>
what's the state of the art approach to run ruby from ruby (and select the same version)
<yorickpeterse>
`ruby derp`
<chris2>
so, using $PATH?
<zzak>
maloik_: thank you
<chris2>
e.g. rake's ruby() works differently
<chris2>
and Gem.ruby is again different
<maloik_>
yw zzak
<maloik_>
caused quite a bit of frustration :D
<gnufied>
chris2: ri ruby
<maloik_>
pretty sure there's not a lot of people using that stuff, and if they are they're probably quite a bit more experienced than I am
<chris2>
yay, three versions all different
<maloik_>
so not exactly a big issue I'm sure
<gnufied>
wow that is weird
<gnufied>
so running ruby via sys or FileUtils gives different ruby?
<chris2>
both are rake functions
<chris2>
but yes
<chris2>
sys is deprecated however
<chris2>
and FileUtils can be overridden via env
mechanicalfish has quit [Quit: mechanicalfish]
mechanicalfish has joined #ruby-lang
michaeldeol has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
AKASkip has quit [Ping timeout: 260 seconds]
mechanicalfish has quit [Remote host closed the connection]
<chris2>
also great for arch to default to --user-install :>
Asher has joined #ruby-lang
<yorickpeterse>
thrindeag
<yorickpeterse>
mmhmm
<jds>
I've got a class which represents a document. It has quite a lot of code for figuring out whether the document should be public or not, based on whether it's been processed yet by a backend job, and what the permissions are of its container. And then it has code for reacting to changes in its publicness, like emailing interested users. I'll like to break
<jds>
it up, & I'm looking for inspiration... any suggestions on particular design patterns to google for?
<jds>
Is that a service object, that might decide whether the doc is public?
<jds>
if you happen to be using ActiveSupport, favored.present?
<apeiros>
also note that .count is mainly intended for use with an argument
<apeiros>
use Array#size to get how many items are in an array.
<jds>
apeiros: huh, really?
hogeo has joined #ruby-lang
seanlinsley has joined #ruby-lang
<apeiros>
jds: yes. count without an argument is one of 3 cases #count handles.
<apeiros>
the other twos are with argument and with block
Kevin___ has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
<apeiros>
I find code with plain count annoying to read as I expect an argument or block to follow and stumble when there is none.
<jds>
count is one of the main things that breaks my brain when switching back & forth between ruby & obj-c (which uses length). I think #size is going to confuse me even further...
<apeiros>
#length is an alias of #size
chabill has joined #ruby-lang
<apeiros>
(rubys obiquitous aliasitis)
Lennier has quit [Quit: Lennier]
io_syl has quit []
mechanicalfish has joined #ruby-lang
hogeo has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby-lang
iliketur_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
<yorickpeterse>
how to get your laptop at 100C:
<yorickpeterse>
start 20 rbx threads
<yorickpeterse>
do stuff
<yorickpeterse>
profit
<apeiros>
pfffft
<apeiros>
start a single flash blinky flashy app
<apeiros>
which does nothing
<apeiros>
just blinks
<apeiros>
or something
judofyr has quit [Remote host closed the connection]
<jds>
yorickpeterse: I did something similar when it rained the other day, to heat up my mac pro so I could dry out my socks on them :)
jsullivandigs has quit [Remote host closed the connection]
itsraining has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
momomomomo has joined #ruby-lang
johnclaus has quit [Quit: johnclaus]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
makoto_ has joined #ruby-lang
mbj has quit [Quit: leaving]
smashwilson has quit [Quit: Leaving]
makoto_ has quit [Ping timeout: 265 seconds]
tylersmi_ has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
nigerianceo has quit []
enebo has quit [Quit: enebo]
amoli has quit [Ping timeout: 250 seconds]
TvL2386 has joined #ruby-lang
<TvL2386>
hi guys, I'm having some problems with inheritance, I have a little demo here: http://pastie.org/8548675. It's about redefining constants and seeing old values
<TvL2386>
I don't understand why it does not work the way I thought it would be
kek has quit [Remote host closed the connection]
kek has joined #ruby-lang
johnclaus has joined #ruby-lang
kek_ has joined #ruby-lang
kek has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 272 seconds]
<TvL2386>
doing "p self.class::CONST" works, but it looks ugly and I don't know why :S
snsei_ has quit [Remote host closed the connection]
bjh13 has quit [Quit: leaving]
snsei has joined #ruby-lang
MichD is now known as michd
apeiros has joined #ruby-lang
michaeldeol has joined #ruby-lang
charliesome has joined #ruby-lang
tubbo is now known as give-her-that-dd
give-her-that-dd is now known as tubbo
tylersmith has joined #ruby-lang
snsei has quit [Ping timeout: 265 seconds]
tylersmi_ has quit [Read error: Connection reset by peer]
TvL2386 has quit [Quit: Ex-Chat]
phus1on has quit [Quit: .]
snsei has joined #ruby-lang
michaeldeol has quit [Ping timeout: 252 seconds]
r0bby_ has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
jsullivandigs has joined #ruby-lang
hogeo has joined #ruby-lang
hogeo has quit [Ping timeout: 245 seconds]
aroop has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
coca_rails has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
seanlinsley has quit [Quit: seanlinsley]
apeiros has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]