<Radar>
hastur: Did you really run `gem install pg`?
<Radar>
And did it succeed?
hutch34 has joined #ruby
<hastur>
er, i did use sudo
* Arcaire
puts quiet bets on apt-get install libpq-dev.
ramfjord has joined #ruby
<hastur>
already libpq, i'll be taking that money thx
<Arcaire>
You get nothing, because you used sudo.
<hastur>
man
nankyokusei has joined #ruby
<hastur>
half of my gems fail because i DON'T use sudo
<Arcaire>
wew rvm
<Arcaire>
best ruby installation system 2kever
<hastur>
tried without sudo, pg now seems to work
<hastur>
t-thanks
<Arcaire>
y-you too
<Radar>
hastur: now that you're using RVM, don't use sudo for anything.
<hastur>
ahhh
<hastur>
so sudo then rvm is okay, but not vice versa?
<Gnosis>
lol'led at that one
hutch34 has quit [Ping timeout: 276 seconds]
shevy has joined #ruby
<hastur>
at some point, you don't really have to know the idiosyncracies of every tool you use in order to merely use those tools
<hastur>
we have long since passed that point
<Arcaire>
that's why i evolved from using rvm
<Arcaire>
and now use a systemwide ruby with a user-specific gemhome
<Arcaire>
:^)
nankyokusei has quit [Ping timeout: 244 seconds]
<hastur>
nice meme
<hastur>
sounds like a lot of work m9
<Arcaire>
nah
<Arcaire>
`gem` read the environment variable
<Arcaire>
automatically, it always has
<Arcaire>
you just have to set it, which i do in .bashrc
<Arcaire>
export GEM_HOME=$HOME/.gem
<Arcaire>
ez
jenrzzz has quit [Ping timeout: 276 seconds]
<Arcaire>
Systemwide ruby is just pacman -S ruby on my desktop, or whatever downloaded and installed in /usr myself
<Arcaire>
on my server boxen
<hastur>
mein mainframe
<Arcaire>
m'ainframe
<hastur>
kek
<hastur>
that's pretty tite tho
<Arcaire>
works v. well for me, and i don't have duplicate ruby versions lying around
<Arcaire>
i'd rather have all my projects on one ruby version with semi-variable gem versions than totally variable everythings because you did 'rvm install' on a different date.
<Arcaire>
ofc this doesn't work in "production" because people haven't worked out that Docker is a meta-meme yet and is actually okay.
blackmesa has joined #ruby
<hastur>
what you're saying is
<hastur>
"docker is a meme" is a meme
<Arcaire>
this is
<Arcaire>
what i'm saying
M-shine has joined #ruby
<Arcaire>
it's alright if you secure it up right
<hastur>
i have to applaud the way you turned what i said into what you said because that's a gorgeous use of meta
ramfjord has quit [Ping timeout: 244 seconds]
<hastur>
or at least
<hastur>
a correct usage
<hastur>
which
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<hastur>
in this climate
<hastur>
in THIS economy
<Arcaire>
in the CURRENT YEAR
<hastur>
it's ................ 2016
vdamewood has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
shevy has joined #ruby
dminuoso has joined #ruby
vdamewood has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 244 seconds]
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
houhoulis has quit [Remote host closed the connection]
mattwashere has joined #ruby
mattwashere has quit [Remote host closed the connection]
benlieb has quit [Ping timeout: 260 seconds]
wuyin has joined #ruby
xall has quit [Ping timeout: 258 seconds]
shevy has quit [Ping timeout: 264 seconds]
<Gnosis>
You guys are either young or very passionate about memes and how a meme may become okay again.
<Gnosis>
Or I am too tired to process all this.
<Arcaire>
Little column A, little column B.
M-Kodo has joined #ruby
xall has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
arescorpio has quit [Quit: Leaving.]
shevy has joined #ruby
solocshaw has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
RegulationD has joined #ruby
kareeoleez has joined #ruby
thatsnotjack has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
<hastur>
Memes Rule Everything Around Me
jgt3 has joined #ruby
<hastur>
the meme war is at hand, brother
dminuoso has quit [Ping timeout: 252 seconds]
<hastur>
arm yourself
zotherstupidguy has quit [Ping timeout: 258 seconds]
<Arcaire>
lmao
<Arcaire>
there's no way you're not from #ig
RegulationD has quit [Ping timeout: 276 seconds]
hastur has quit [Quit: Leaving]
nadir has quit [Quit: Connection closed for inactivity]
jgt3 has quit [Ping timeout: 258 seconds]
fclausen has joined #ruby
jaguarmagenta has joined #ruby
elifoster has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
karapetyan has joined #ruby
SilverKey has joined #ruby
No has joined #ruby
Devalo has joined #ruby
M-mistake has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 244 seconds]
hk238 has joined #ruby
nadir has joined #ruby
hirvi has joined #ruby
k3rn31 has joined #ruby
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
hirvi has quit [Quit: leaving]
eljimmy has quit [Quit: Leaving]
hirvi has joined #ruby
gusrub has quit [Quit: Leaving]
tmtwd has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
shevy has joined #ruby
neo_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
zacstewart has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
Devalo has quit [Remote host closed the connection]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
neo_ has joined #ruby
febuiles has joined #ruby
SilverKey has quit [Quit: Halted.]
blackmesa has quit [Ping timeout: 240 seconds]
dminuoso has joined #ruby
vdamewood has quit [Quit: Life beckons.]
moeabdol has joined #ruby
jas02 has joined #ruby
seth has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
Vile` has quit [Ping timeout: 276 seconds]
dminuoso has quit [Remote host closed the connection]
preyalone has quit [Quit: Connection closed for inactivity]
jaguarmagenta has quit [Remote host closed the connection]
Hyuk has joined #ruby
dminuoso has joined #ruby
Hyuk has quit [Max SendQ exceeded]
unknown| has quit [Ping timeout: 246 seconds]
jaguarmagenta has joined #ruby
sauvin has joined #ruby
astrobunny has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
blandflakes has joined #ruby
dminuoso has quit [Remote host closed the connection]
blandflakes has quit [Client Quit]
srgupta has joined #ruby
roamingdog has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
srgupta has quit [Client Quit]
xall has quit [Ping timeout: 264 seconds]
tmillc has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dminuoso has joined #ruby
Lucky_ABA has joined #ruby
Rodya_ has quit [Remote host closed the connection]
neo_ has quit [Remote host closed the connection]
xall has joined #ruby
pawnbox has quit [Remote host closed the connection]
craigp_ has joined #ruby
isberg has quit [Remote host closed the connection]
zacstewart has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
isberg has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tildes has joined #ruby
blackmesa has joined #ruby
zacstewart has quit [Ping timeout: 258 seconds]
astrobunny has quit [Remote host closed the connection]
thatsnotjack has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
ciampix has joined #ruby
ascarter has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
mattwashere has joined #ruby
mfb2 has joined #ruby
isberg has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 272 seconds]
TomyLobo has joined #ruby
isberg has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.2]
boogeyman has quit [Max SendQ exceeded]
boogeyman has joined #ruby
mattwashere has quit [Ping timeout: 244 seconds]
mfb2 has quit [Ping timeout: 246 seconds]
Dimik has joined #ruby
boogeyman has quit [Max SendQ exceeded]
boogeyman has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
boogeyman has quit [Max SendQ exceeded]
pawnbox has quit [Remote host closed the connection]
boogeyman has joined #ruby
pawnbox has joined #ruby
boogeyman has quit [Max SendQ exceeded]
Adarsh_why has joined #ruby
boogeyman has joined #ruby
<Adarsh_why>
hi
boogeyman has quit [Remote host closed the connection]
<dminuoso>
Hello Adarsh_why
<Adarsh_why>
hello all. I am first time in irc
boogeyman has joined #ruby
<Adarsh_why>
but this is cool
<Adarsh_why>
Thanks @dminuoso
boogeyman has left #ruby [#ruby]
i8igmac has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
<Adarsh_why>
Is anybody here into functional programming in ruby?
skade has joined #ruby
<Adarsh_why>
It seems everyone busy.
<Adarsh_why>
ok Thanks. Later
RegulationD has joined #ruby
dhruvasagar has joined #ruby
shevy has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
LoneHermit has quit [Remote host closed the connection]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
voodoofish430 has joined #ruby
sandelius has joined #ruby
Adarsh_why has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
jgt3 has joined #ruby
ullu has joined #ruby
vuoto has joined #ruby
conta has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
i8igmac has joined #ruby
ullu has quit [Ping timeout: 260 seconds]
k3rn31 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
A5101 has quit [Ping timeout: 244 seconds]
DoubleMalt has joined #ruby
firstdayonthejob has joined #ruby
rodfersou has joined #ruby
roamingdog has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
emiltin has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
mark_66 has joined #ruby
Pumukel has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
patrick_star_3 has quit [Ping timeout: 276 seconds]
ur5us has quit [Remote host closed the connection]
blaxter has joined #ruby
Mia has quit [Read error: Connection reset by peer]
banjara has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
banjara has quit [Client Quit]
moeabdol has joined #ruby
ur5us has joined #ruby
patrick_star_3 has joined #ruby
andikr has joined #ruby
ensyde has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 240 seconds]
dmr8 has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
copperfield has joined #ruby
dc2 has joined #ruby
djbkd has joined #ruby
blackmesa has joined #ruby
yfeldblum has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
yfeldblum has quit [Remote host closed the connection]
leea has joined #ruby
yfeldblum has joined #ruby
tmillc has left #ruby ["WeeChat 1.1.1"]
Parko has quit [Quit: In a while, crocodile]
douglascorrea has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
teclator_ has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
douglascorrea has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
solars has joined #ruby
jgt3 has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
aryaching has quit [Remote host closed the connection]
soulisson has joined #ruby
User458764 has joined #ruby
<soulisson>
Hi, in ruby, are blocks objects that get implicitly passed to the function?
<User458764>
Hi, how do I handle a Array string?
<User458764>
I want to get an Array of course
RegulationD has joined #ruby
<dminuoso>
soulisson: Not exactly objects.
astrobunny has joined #ruby
vqrs has quit [Ping timeout: 272 seconds]
<dminuoso>
soulisson: Blocks are one of the very few things in Ruby that are actually not objects. But in a sense you are right.
<dminuoso>
They do get implicitly passed, and you get test for their presence using block_given?
karapetyan has joined #ruby
vuoto has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
<soulisson>
dminuoso, ok, so just the block address is passed to the function?
<dminuoso>
soulisson: The exact details depend on the implementation.
the_drow has joined #ruby
vqrs has joined #ruby
rolfb has joined #ruby
LoneHerm_ has joined #ruby
febuiles has quit [Quit: febuiles]
CloCkWeRX has quit [Ping timeout: 252 seconds]
teclator_ is now known as teclator
n1x-nz has joined #ruby
<dminuoso>
soulisson: But you have no direct way to interact with the block other than either a) calling yield or b) bind it to a proc.
antgel has joined #ruby
the_drow has quit [Client Quit]
RegulationD has quit [Ping timeout: 258 seconds]
hs366 has joined #ruby
hs366 has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 246 seconds]
ruby-lang910 has joined #ruby
ur5us has joined #ruby
<soulisson>
ok
LoneHerm_ has quit [Ping timeout: 276 seconds]
<dminuoso>
soulisson: Interestingly any proc object has a block attached to it - but it is that proc that is an actual Ruby object. That is also why binding a block to a proc is relatively cheap, because you only need to create a really small proc object, and then the block pointer gets assigned to it.
<soulisson>
dminuoso, thanks
the_drow has joined #ruby
Couch has joined #ruby
<soulisson>
dminuoso, another question, are methods objects in ruby?
ta_ has quit [Ping timeout: 272 seconds]
tildes has joined #ruby
the_drow has quit [Max SendQ exceeded]
<dminuoso>
soulisson: They are not in fact. They also belong to that small group of things that are not objects.
CloCkWeRX has joined #ruby
the_drow has joined #ruby
<dminuoso>
soulisson: You can unbind them though, and thus creating objects from them.
djbkd has quit [Remote host closed the connection]
joonty has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
<dminuoso>
soulisson: The third and I think last bit is variables, they also are not objects.
<soulisson>
ok, thank you very much
roamingdog has joined #ruby
hs366 has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
roamingdog has quit [Ping timeout: 260 seconds]
Sucks has joined #ruby
minimalism has quit [Quit: minimalism]
aganov has joined #ruby
AlexRussia has joined #ruby
biberu has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
rkazak has joined #ruby
Niham has joined #ruby
soulisson has quit [Quit: Quitte]
<User458764>
I try to convert a String to an Array, my array string is "[1, 2, 3]" and String.try_convert "[1, 2, 3]" returns me another String but not an Array, why?
voodoofish4301 has joined #ruby
voodoofish430 has quit [Ping timeout: 258 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
<adaedra>
Because that's not what try_convert does
blackmesa has joined #ruby
<adaedra>
try_convert tries to convert something into a string, not from
<adaedra>
Your data however is JSON-parseable, so you can use that
tubuliferous has joined #ruby
yfeldblum has joined #ruby
dc2 has quit [Ping timeout: 276 seconds]
multi_io has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
multi_io has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
tubuliferous has quit [Ping timeout: 244 seconds]
anisha has joined #ruby
jgt3 has joined #ruby
vondruch has quit [Quit: Ex-Chat]
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
ramfjord has joined #ruby
benlieb has joined #ruby
<User458764>
adaedra thanks JSON will do the job
jgt3 has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
Guest91508 has joined #ruby
aufi has joined #ruby
elaptics`away is now known as elaptics
Es0teric has quit [Quit: Computer has gone to sleep.]
anisha has quit [Read error: Connection timed out]
mattwashere has joined #ruby
Ishido has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rkoller has joined #ruby
benlieb has quit [Quit: benlieb]
Silthias has joined #ruby
araujo_ has joined #ruby
araujo has quit [Ping timeout: 258 seconds]
araujo_ has quit [Max SendQ exceeded]
pandaant has joined #ruby
mattwashere has quit [Ping timeout: 264 seconds]
Silthias1 has joined #ruby
MrBusiness has quit [Ping timeout: 250 seconds]
Silthias has quit [Ping timeout: 260 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jgt3 has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
Snowy has joined #ruby
isxek has joined #ruby
Snowy has left #ruby [#ruby]
dmr8 has quit [Quit: Leaving]
fold4 has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
ferr1 has quit [Ping timeout: 246 seconds]
LoneHermit has joined #ruby
astrobunny has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
xall has quit [Ping timeout: 264 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
RegulationD has quit [Ping timeout: 264 seconds]
LoneHermit has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 244 seconds]
Guest91508 has quit [Remote host closed the connection]
MrBusiness has joined #ruby
vondruch has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
mrgrieves has joined #ruby
blandflakes has joined #ruby
tomphp has joined #ruby
roamingdog has joined #ruby
blandflakes has quit [Client Quit]
jackjackdripper has quit [Quit: Leaving.]
jenrzzz has joined #ruby
braincrash has quit [Ping timeout: 276 seconds]
roamingdog has quit [Ping timeout: 258 seconds]
moeabdol has joined #ruby
fold4 has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
solars has joined #ruby
copperfield has quit [Ping timeout: 252 seconds]
stan has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
Parker0_ has quit [Ping timeout: 252 seconds]
Parker0 has quit [Ping timeout: 246 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
hs366 has quit [Ping timeout: 244 seconds]
rikkipitt has joined #ruby
stan has joined #ruby
fold4 has quit [Ping timeout: 244 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
tubuliferous has joined #ruby
hutch34 has joined #ruby
madgen has joined #ruby
sebstrax has quit [Quit: Connection closed for inactivity]
skade has joined #ruby
Ishido has quit [Ping timeout: 260 seconds]
JesseH has quit [Ping timeout: 258 seconds]
emiltin has quit [Quit: Computer has gone to sleep.]
tubuliferous has quit [Ping timeout: 246 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
hs366 has joined #ruby
ta_ has joined #ruby
fold4 has joined #ruby
zacstewart has joined #ruby
haxrbyte has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
marr has joined #ruby
haxrbyte has joined #ruby
pawnbox has joined #ruby
Niham has joined #ruby
idletask has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 272 seconds]
Sucks has quit [Ping timeout: 260 seconds]
zacstewart has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
blackgoat has joined #ruby
dc2 has joined #ruby
iszak_ is now known as iszak
iszak is now known as Guest37082
JesseH has joined #ruby
jaguarmagenta has joined #ruby
rikkipitt has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
terlar has joined #ruby
karapetyan has joined #ruby
postmodern has quit [Quit: Leaving]
antgel has joined #ruby
lxsameer has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
karapetyan has quit [Ping timeout: 258 seconds]
jaiks1 has joined #ruby
Guest37082 is now known as iszak
iszak has quit [Changing host]
iszak has joined #ruby
jxs__ has quit [Ping timeout: 250 seconds]
rikkipitt has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
terlar has quit [Quit: WeeChat 1.5]
terlar has joined #ruby
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
A_Drone has joined #ruby
ex0ns has quit [Quit: Lost terminal]
ex0ns has joined #ruby
moeabdol has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
rbr has joined #ruby
TomyWork has joined #ruby
karapetyan has joined #ruby
YaknotiS has quit [Quit: Leaving]
SirOliver has joined #ruby
A_Drone has quit [Remote host closed the connection]
emilkarl has joined #ruby
toretore has joined #ruby
emilkarl has quit [Client Quit]
rikkipitt has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
A_Drone has quit [Read error: Connection reset by peer]
A_Drone_ has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
zacstewart has joined #ruby
craigp_ has quit [Ping timeout: 260 seconds]
A_Drone_ has quit [Remote host closed the connection]
GodFather has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
GodFather has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
ur5us has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
johnmilton has quit [Remote host closed the connection]
c355e3b has joined #ruby
koooge has quit [Quit: Leaving...]
emiltin has joined #ruby
Shidash has left #ruby [#ruby]
mattwashere has joined #ruby
GodFather has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
yfeldblum has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
mattwashere has quit [Ping timeout: 250 seconds]
braincrash has quit [Ping timeout: 276 seconds]
binaryplease1 has joined #ruby
nettoweb has joined #ruby
A_Drone has joined #ruby
leea has joined #ruby
moeabdol has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
GodFather has quit [Read error: Connection reset by peer]
araujo has joined #ruby
GodFather has joined #ruby
User458764 has joined #ruby
braincrash has joined #ruby
araujo has quit [Max SendQ exceeded]
roamingdog has joined #ruby
araujo has joined #ruby
araujo has quit [Remote host closed the connection]
binaryplease1 is now known as binaryplease
ramfjord has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hs366 has quit [Ping timeout: 240 seconds]
emiltin has quit [Quit: Computer has gone to sleep.]
roamingdog has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
emiltin has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
ullu has joined #ruby
ramfjord has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
ullu has quit [Ping timeout: 276 seconds]
tildes has quit [Ping timeout: 250 seconds]
conta has quit [Ping timeout: 258 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rikkipitt has quit [Remote host closed the connection]
emiltin has quit [Quit: Computer has gone to sleep.]
A_Drone has quit []
iMadper has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
braincrash has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
blackmesa has joined #ruby
rikkipitt has joined #ruby
shadeslayer has quit [Remote host closed the connection]
bweston92 has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
shadeslayer has joined #ruby
sdothum has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
SirOliver has quit [Quit: ZZZzzz…]
ta__ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
rbr has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SirOliver has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
spiman_ has joined #ruby
davidblko has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
spiman has quit [Ping timeout: 264 seconds]
neo_ has joined #ruby
TheHodge has joined #ruby
Ishido has joined #ruby
blackmesa has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ICantCook has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
strigonLeader has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
minimalism has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blandflakes has joined #ruby
craigp_ has joined #ruby
johnmilton has joined #ruby
No has quit [Ping timeout: 264 seconds]
blandflakes has quit [Client Quit]
nettoweb has joined #ruby
SirOliver has joined #ruby
kedare has joined #ruby
raeoks has joined #ruby
craigp_ has quit [Ping timeout: 260 seconds]
braincrash has quit [Ping timeout: 240 seconds]
jasvinder has quit [Ping timeout: 264 seconds]
unshadow has joined #ruby
braincrash has joined #ruby
n1x-nz has quit [Quit: Computer says no]
SirOliver has quit [Quit: ZZZzzz…]
tildes has joined #ruby
SirOliver has joined #ruby
shortCircuit__ has joined #ruby
<shortCircuit__>
hi
<shortCircuit__>
I have a question
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shortCircuit__>
I have a module Abc which has a method foo and I also have a class Def which include Abc and also has a method foo .. now c = Def.new .. c.foo calls the class's foo ... how do I call the module's foo .... like a delegate or something
aryaching has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shortCircuit__>
is there something like a .call or .bind
<shortCircuit__>
there is a .call on proc and lambda
braincrash has quit [Ping timeout: 244 seconds]
yqt has joined #ruby
braincrash has joined #ruby
karapetyan has joined #ruby
emilkarl has joined #ruby
SirOliver has quit [Remote host closed the connection]
spiman_ has quit []
eatsfoobars has joined #ruby
arnonhongklay has joined #ruby
eatsfoobars has quit [Client Quit]
blackmesa has quit [Ping timeout: 252 seconds]
conta has joined #ruby
karapetyan has quit [Remote host closed the connection]
neo_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
chip_ has joined #ruby
rikkipitt has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<hanmac>
shortCircuit__: from where do you want to call the Abc#foo ? from inside the Def#foo or from the object c ?
RegulationD has joined #ruby
<shortCircuit__>
hanmac I would like from the object and Def#foo
spudowiar has quit [Ping timeout: 260 seconds]
tildes has quit [Remote host closed the connection]
rikkipitt has joined #ruby
<hanmac>
from the Def#foo, just use "super", from the object you might need to alias the method to something lese like abc_foo
rolfb has quit [Quit: Leaving...]
craigp_ has joined #ruby
<shortCircuit__>
I see .. so just alias it just after the include Abc
braincrash has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
douglascorrea has joined #ruby
mdw has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
douglascorrea has quit [Remote host closed the connection]
rolfb has joined #ruby
stoopidmunkey has joined #ruby
douglascorrea has joined #ruby
hs366 has joined #ruby
eatsfoobars has joined #ruby
rikkipitt has quit [Remote host closed the connection]
braincrash has joined #ruby
emiltin has joined #ruby
stoopidmunkey has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
stoopidmunkey has joined #ruby
dvinciguerra_ has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
Vile` has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
joonty has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
nennes has joined #ruby
skade has joined #ruby
mdw has joined #ruby
aryaching has joined #ruby
Gasher has joined #ruby
mdw has quit [Client Quit]
Fernando-Basso has joined #ruby
solars has quit [Ping timeout: 258 seconds]
neo_ has joined #ruby
pawnbox has joined #ruby
bkxd has joined #ruby
karapetyan has joined #ruby
User458764 has joined #ruby
nennes has quit [Ping timeout: 252 seconds]
carella has joined #ruby
neo_ has quit [Ping timeout: 258 seconds]
hanmac has joined #ruby
ramfjord has joined #ruby
No has joined #ruby
ullu has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
zacstewart has joined #ruby
samara has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
synthroid has joined #ruby
workmad3 has joined #ruby
zacstewart has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
stoopidmunkey has quit [Ping timeout: 244 seconds]
rikkipitt has joined #ruby
chip_ has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
eatsfoobars has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 258 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
Guest14 has joined #ruby
blackmesa has joined #ruby
Guest14 is now known as sinpai
lenwood has joined #ruby
hutch34 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
prestorium has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
douglascorrea has quit [Remote host closed the connection]
blandflakes has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
Amnez777 has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
aupadhye has joined #ruby
fmcgeough has joined #ruby
chip_ has joined #ruby
davedev24 has joined #ruby
GodFather has joined #ruby
douglascorrea has joined #ruby
pawnbox has joined #ruby
<shevy>
hmm
<shevy>
if only rubygems.org would have an issue request thingy!
blackgoat has quit [Quit: WeeChat 1.5]
CJKinni has joined #ruby
fclausen_ has joined #ruby
ullu has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
No has quit [Ping timeout: 264 seconds]
fclausen has quit [Ping timeout: 240 seconds]
ych has joined #ruby
<rapha_>
shevy: no copy of the Gem on Github?
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
<l4v2>
I’m still in very on in learning Ruby and Rails, so I am not sure about that, but that was Rubies Docs. But then again, Rails might inheret a lot from Ruby
saneax_AFK is now known as saneax
SilverKey has joined #ruby
emiltin has quit [Quit: Computer has gone to sleep.]
polishdub has joined #ruby
ChiefAlexander has joined #ruby
aufi has joined #ruby
svkurowski has quit [Ping timeout: 240 seconds]
mattwashere has quit [Remote host closed the connection]
catbusters has joined #ruby
rafadc has joined #ruby
benlieb has quit [Quit: benlieb]
<l4v2>
So if I am inhereting from this class class PasswordResetsTest < ActionDispatch::IntegrationTest Then how do I have access to a mehtod I don’t see listed in it like: assert_template Where do these methods live?
<jhass>
shevy: http://rubular.com/r/cInPEcoPy7 is what I tried, it works for the first and second, but how do I get c for the third and fourth and d for the fifth?
karapetyan has quit [Remote host closed the connection]
xaxisx has joined #ruby
SCHAAP137 has joined #ruby
DanyC has left #ruby [#ruby]
lenwood_ has joined #ruby
<havenwood>
class Module; alias module_funkitron module_function endalias module_funkitron
l4v2 has joined #ruby
CJKinni has quit [Remote host closed the connection]
tomchapin has joined #ruby
<smathy>
Oh yeah, module_function, havenwood ftw. I always forget about that.
<havenwood>
Wildfyr: Even if you don't want to use exercism they have some good project ideas. But I'd suggest giving it a try since you can get some good feedback. Show us your project here too!
dminuoso has joined #ruby
neo_ has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
<Wildfyr>
havenwood: okay
SilverKey has quit [Quit: Halted.]
Lucky_ABA has quit [Read error: Connection reset by peer]
jas02 has quit [Quit: jas02]
Devalo has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
ciampix has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
neo_ has joined #ruby
emiltin has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
macsteps has quit [Remote host closed the connection]
aegis3121 has joined #ruby
karapetyan has joined #ruby
neo_ has quit [Ping timeout: 250 seconds]
mattwashere has quit [Remote host closed the connection]
tvon has quit [Quit: System is sleeping...]
mattwashere has joined #ruby
tvon has joined #ruby
Wsewolod has joined #ruby
mwlang has quit [Quit: mwlang]
slackbotgz has quit [Remote host closed the connection]
<agent_white>
Mornin'
prefix has joined #ruby
solars has joined #ruby
<baweaver>
havenwood: what's the use of module_function?
Silthias1 has quit [Quit: Leaving.]
* baweaver
is skimming through the docs on it.
macsteps has joined #ruby
<aegis3121>
It declares a method as being accessible with the Module as the receiver
<aegis3121>
IIRC
<aegis3121>
e.g. class methods for modules
<havenwood>
baweaver: When you want the module method but also a private method by the same name when you include the module.
<baweaver>
so def self.method ?
ChiefAlexander has joined #ruby
<baweaver>
not really seeing it, but that might just be the pre-coffee haze talking
<havenwood>
baweaver: Yeah, it's that plus the private method when you include it.
isxek has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 260 seconds]
antgel has quit [Ping timeout: 260 seconds]
Oog has quit []
blackmesa has joined #ruby
stoopidmunkey has joined #ruby
<havenwood>
Like fileutils, etc in the stdlib - you might want to call the self.method-style directly on the module, but alternatively you might want to include the module, but have the included method be private. I'm having not-enough-coffee explaining difficulty. :P
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
nettoweb has joined #ruby
sebstrax has joined #ruby
karapetyan has quit [Remote host closed the connection]
Wildfyr has quit [Ping timeout: 244 seconds]
ciampix has quit [Ping timeout: 264 seconds]
hirvi has quit [Quit: brb]
Wildfyr has joined #ruby
hahuang61 has joined #ruby
synthroi_ has joined #ruby
dionysus69 has joined #ruby
<funrep>
what does "ModuleName::some_variable? ModuleName::some_other_var" mean?
<funrep>
context: predicate in an if statement
karapetyan has joined #ruby
thatsnotjack has quit [Ping timeout: 244 seconds]
<baweaver>
sure it's a variable?
<baweaver>
might just be used as a namespace
agentmeerkat has quit [Ping timeout: 240 seconds]
<dminuoso>
irb
<baweaver>
like Aws::EC2::connecrions
karapetyan has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
SilverKey has quit [Quit: Halted.]
karapetyan has joined #ruby
synthroid has quit [Ping timeout: 276 seconds]
pilne has joined #ruby
karapetyan has quit [Remote host closed the connection]
hirvi has joined #ruby
edwardly has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
mattwashere has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 276 seconds]
macsteps has quit [Remote host closed the connection]
mattwashere has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
<funrep>
im just not sure what the "?" means, because i cant find a variable with tatt exact name, only without the ? in the libraries docs
yardenbar has joined #ruby
hutch34 has joined #ruby
rkazak has joined #ruby
freerobby has joined #ruby
<baweaver>
ah
<baweaver>
that
<baweaver>
It's a stylistic thing. Ruby methods can have ? or ! on the end
<baweaver>
they're usually used to indicate boolean (a question) or danger / mutation
<funrep>
ah alright!
<baweaver>
Like if I wanted to know if Person Bob was legal, I might ask: bob.legal?
<l4v2>
yes
<baweaver>
! (bang) methods normally indicate mutation, like map vs map!
<l4v2>
oh, I thought your explanation was hime asking if that is how the bob.legal worked
<l4v2>
I was saying yes to it
Vingador has quit [Ping timeout: 240 seconds]
<baweaver>
I think we all need coffee this morning havenwood :D
tubuliferous has joined #ruby
postmodern has joined #ruby
<l4v2>
Ok so how am I supposed to know that methods from MiniTest in Ruby are available in Rails class ActionDispatch::IntegrationTest
elifoster has joined #ruby
karapetyan has quit [Remote host closed the connection]
<l4v2>
The rails docs do not show that parent class
* baweaver
knows precious little about minitest
karapetyan has joined #ruby
<baweaver>
also meeting time, be back later.
davidblko has quit [Remote host closed the connection]
<smathy>
l4v2, it's probably not a parent class, probably just mixed in. The Rails API isn't really very formally specified, mostly people know because they learnt from a tutorial, generator, or some article/post from the web.
mattwashere has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
n8o has joined #ruby
<n8o>
Has anyone had problems with rake on Travis CI?
arnonhongklay has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
Wildfyr has quit [Quit: Night]
aegis3121 has quit [Ping timeout: 246 seconds]
mtkd has quit [Ping timeout: 260 seconds]
gagrio has joined #ruby
thatsnotjack has joined #ruby
mtkd has joined #ruby
lenwood_ has quit [Ping timeout: 264 seconds]
troulouliou_div2 has joined #ruby
<funrep>
what kind of "function/method" is this? https://www.libgosu.org/rdoc/Gosu.html#button_down%3F-class_method it doesnt wrap its arguments in paranthesses when called in this context: "if Gosu::button_down? Gosu::KbLeft or Gosu::button_down? Gosu::GpLeft then"
Ariadeno has quit [Ping timeout: 244 seconds]
<shevy>
was there a way from within a ruby script to move the cursor to the very left side? e. g if someone would do print "hi", to erase the hi and "jump" as to the cursor position before hi was printed
arooni has joined #ruby
<havenwood>
l4v2: Ruby 2.0 is past end-of-life and Ruby 2.1 is not receiving bug fixes since it's in maintenance mode. If you can switch to Ruby 2.2.5 or Ruby 2.3.1 it'd be best!
diegoviola has joined #ruby
SilverKey has quit [Read error: Connection reset by peer]
stoopidmunkey has quit []
SilverKey has joined #ruby
<l4v2>
That was where my Google search brought me, I didn’t even catch that. Yeah I am using 2.3.1
jas02 has joined #ruby
mattwashere has quit [Remote host closed the connection]
<havenwood>
l4v2: That way the docs will be maintained among other good reasons.
<havenwood>
l4v2: Ah, perfect.
mattwashere has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
SilverKey has quit [Client Quit]
synthroid has joined #ruby
No has quit [Ping timeout: 246 seconds]
neo_ has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lawell has joined #ruby
neo_ has joined #ruby
synthroi_ has quit [Ping timeout: 258 seconds]
aegis3121 has joined #ruby
tubuliferous has joined #ruby
User458764 has joined #ruby
B1n4r10 has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
<wrkrcoop>
im writing a integration spec and when i write get "person/v1/lookup/" :ids => “1,2,3” the ids dont get passed in
<wrkrcoop>
anyone know how to pass in params for get request?
<baweaver>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
neo_ has quit [Ping timeout: 244 seconds]
tvw has quit [Read error: Connection reset by peer]
<baweaver>
also, it's probably get "url/#{id}"
banister has quit [Remote host closed the connection]
<wrkrcoop>
baweaver: not using rails
roamingdog has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
<baweaver>
saw rspec-rails in the URL
<l4v2>
havenwood the require ‘test_helper’ file may be where those assertions are in the ActionDispatch::IntegrationTest class. But here’s my question, I don’t have this gem in my Gemfile, so can I require gems just for certain files? Is that what is going on there?
Madplatypus has joined #ruby
Ariadeno has joined #ruby
<wrkrcoop>
baweaver: adding the params to the url didnt work either … any other ideas?
banister has joined #ruby
<baweaver>
and you're printing the params out? Is it Sinatra or what?
<wrkrcoop>
baweaver: some internal framework, yes param says ‘test'
lenwood has joined #ruby
<baweaver>
try removing the trailing slash
ramfjord has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
<wrkrcoop>
k
<baweaver>
Is the framework based on anything like Rack?
<wrkrcoop>
yes its using rack
edwardly has quit [Max SendQ exceeded]
<havenwood>
l4v2: If you're prefixing `bundle exec` to your command or rubygems_bundler is doing it for you then you're limited to exactly the gems and versions thereof in your Gemfile.lock file
johnmilton has quit [Remote host closed the connection]
<aldodelgado>
Is it possible to create a model scope that returns a set of results and then from those results have a condition to only return the strings from a column?
<ljarvis>
alexandernst: personally I would avoid until/unless for complex conditions
<isberg>
drbrain Yes
<ljarvis>
alexandernst: complex being one that has more than one condition
<alexandernst>
I feel completely stupid googling "how to do until in ruby" having 15 years or C/C++ experience on my back...
<ljarvis>
alexandernst: that's a sign you should just avoid it imo
<drbrain>
isberg: to keep it from freezing you'll need to read the data in like pontiki said
<al2o3-cr>
1.9.3?
<drbrain>
either with a Thread or by using IO#select
<alexandernst>
ljarvis: I'd avoid using until at all, but the linter I'm forced to use at work complains about "while not" ...
<ljarvis>
alexandernst: if you're having difficulty writing it, it'll be difficult to read/maintain
<drbrain>
al2o3-cr: to show that old versions support it too
<ljarvis>
alexandernst: fix the silly linter
<al2o3-cr>
drbrain: got it :)
<alexandernst>
ljarvis: not allowed to :P
ldnunes has quit [Quit: Leaving]
Coldblackice has joined #ruby
<ljarvis>
alexandernst: you can't add a rule to avoid it blowing up on that? it's ridiculous that it's making your code worse. That's against the whole point of a linter
<alexandernst>
yeah...
<drbrain>
isberg: without reading the data out of the pipe eventually its buffer fills up and the child process will stall on write
<wrkrcoop>
i have two arrays a = [1,2,3,4,5] and b = [5,6,7,8,9] is there a method that allows me to detect duplicates?
vuoto has quit [Ping timeout: 244 seconds]
<aegis3121>
are you wanting to know if there are duplicates, or know what they are?
<ljarvis>
wrkrcoop: (a & b).any?
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wrkrcoop>
ljarvis: thank you
Es0teric has quit [Quit: Computer has gone to sleep.]
<drbrain>
wrkrcoop: >> a = [1,2,3,4,5]; b = [5,6,7,8,9]; a & b
<drbrain>
ugh
<drbrain>
>> a = [1,2,3,4,5]; b = [5,6,7,8,9]; a & b
<ruby[bot]>
drbrain: # => can't modify frozen String (RuntimeError) ...check link for more (https://eval.in/597258)
solocshaw has joined #ruby
<drbrain>
for +-"foo" first the string is dup'd and frozen, then the frozen string is dup'd, then "bar" is appended
<drbrain>
for -+"foo" first the string is returned (because it isn't frozen), then the string is dup'd and frozen, then you get the RuntimeError because you can't append to a frozen "foo"