Guest84598 has quit [Read error: Connection reset by peer]
Guest84598 has joined #ruby-lang
Guest84598 has quit [Read error: Connection reset by peer]
Guest84598 has joined #ruby-lang
benanne has quit [Quit: kbai]
Guest84598 has quit [Read error: Connection reset by peer]
petercooper has joined #ruby-lang
Guest84598 has joined #ruby-lang
kain has joined #ruby-lang
Guest84598 has quit [Read error: Connection reset by peer]
Guest84598 has joined #ruby-lang
Guest84598 has left #ruby-lang [#ruby-lang]
erichmenge has joined #ruby-lang
Jork1 has quit [Quit: Jork1]
ianblenke2 has quit [Ping timeout: 248 seconds]
kain has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby-lang
scottschecter has quit [Ping timeout: 252 seconds]
datanoise has joined #ruby-lang
charliesome has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
ianblenke1 has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
agarie has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
m3nd3s has joined #ruby-lang
coryf has joined #ruby-lang
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
havenn has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
VGoff is now known as VGoff_afk
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
justinseiter has joined #ruby-lang
Hakon has joined #ruby-lang
gmci has quit [Ping timeout: 246 seconds]
Fretta has joined #ruby-lang
justinseiter has quit [Ping timeout: 246 seconds]
erichmenge has quit [Quit: Be back later]
gmci has joined #ruby-lang
gmci has quit [Ping timeout: 244 seconds]
swarley has joined #ruby-lang
gmci has joined #ruby-lang
gmci has quit [Read error: No route to host]
gmci has joined #ruby-lang
pkondzior_ has joined #ruby-lang
pkondzior has quit [Ping timeout: 246 seconds]
hackeron has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
franckverrot has quit [*.net *.split]
drbrain has quit [*.net *.split]
dous has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
hackeron has joined #ruby-lang
franckverrot has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [*.net *.split]
franckverrot has quit [*.net *.split]
hackeron has quit [*.net *.split]
drbrain has quit [*.net *.split]
BMF has joined #ruby-lang
lcdhoffman has joined #ruby-lang
franckverrot has joined #ruby-lang
hackeron has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
drbrain has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
snorkdude has joined #ruby-lang
YayMe has joined #ruby-lang
sailias has joined #ruby-lang
sailias has quit [Client Quit]
jbsan has quit [Quit: jbsan]
jbsan has joined #ruby-lang
seoaqua has joined #ruby-lang
gmci has quit [Ping timeout: 255 seconds]
gmci has joined #ruby-lang
ryanf has quit [Quit: leaving]
<zzak>
is it normal my cat likes to play fetch?
<Spaceghostc2c>
zzak: What are you playing with?
snorkdude has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sush24 has joined #ruby-lang
<zzak>
a little plastic spring toy
<zzak>
he will play fetch all day and night
<zzak>
it doesnt really matter what toy it is, usually tinfoil ball is good enough
<matti>
LOL
<zzak>
aww, i threw it when he wasnt looking now he is howling to get me to come find it for him
CrazyHorse18 has joined #ruby-lang
gmci has quit [Ping timeout: 248 seconds]
gmci has joined #ruby-lang
CrazyHorse181 has joined #ruby-lang
kain has joined #ruby-lang
CrazyHorse18 has quit [Ping timeout: 255 seconds]
gmci has quit [Ping timeout: 246 seconds]
seoaqua has quit [Ping timeout: 246 seconds]
crackity_jones has joined #ruby-lang
yats has joined #ruby-lang
kain has quit [Ping timeout: 245 seconds]
brownies has joined #ruby-lang
<brownies>
hello
<brownies>
what is the idiomatic way to write a method that can take arguments of varying types?
anannie has joined #ruby-lang
<brownies>
for example, Rails has helpers like user_path that generate a path ... and i can pass in a user object *or* a user id, and it works magically
yats has quit [Ping timeout: 260 seconds]
<steveklabnik>
brownies: two ways
<steveklabnik>
you can use a case
<steveklabnik>
or you can use duck typing
<steveklabnik>
using case:
<steveklabnik>
def foo(bar)
<steveklabnik>
case bar
<steveklabnik>
when String
<steveklabnik>
etc
diegoviola has quit [Quit: leaving]
<steveklabnik>
duck typing: def foo(bar) bar.baz
<steveklabnik>
and then define baz on all the things that work magically
<brownies>
steveklabnik: ah, perfect, thanks. i'll use the case approach
<brownies>
steveklabnik: uh, hm. the exmaple you wrote out... that's just pseudo-code, right? it won't work exactly like that, since the case statement would try to do "bar === String" and return false, right?
m3nd3s has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
rue|w has joined #ruby-lang
benanne has joined #ruby-lang
rue|w has quit [Ping timeout: 245 seconds]
tenderlove has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
ryanf has quit [Quit: broken pipes |||]
Fullmoon has joined #ruby-lang
ryanf has joined #ruby-lang
stiang has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
mytrile has joined #ruby-lang
kain has joined #ruby-lang
<rue>
Very doubt
wallerdev has quit [Quit: wallerdev]
tRAS has quit [Quit: Mother, did it need to be so high?]
stiang has quit [Quit: stiang]
goshakkk has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
tenderlove has joined #ruby-lang
datanoise has joined #ruby-lang
stiang has joined #ruby-lang
datanoise has quit [Ping timeout: 240 seconds]
tenderlove has quit [Ping timeout: 256 seconds]
A124 has joined #ruby-lang
pygmael has quit [Quit: pygmael]
relix has joined #ruby-lang
rue|w has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
<whitequark>
erikh: talking about ruby_parser and melbourne
tRAS has joined #ruby-lang
ryanf has joined #ruby-lang
rue|w has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby-lang
marc3000 has joined #ruby-lang
Carnage\ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
goshakkk has joined #ruby-lang
stiang has quit [Quit: stiang]
solars has joined #ruby-lang
stiang has joined #ruby-lang
<erikh>
wat
ryanf has quit [Quit: leaving]
cantonic has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
vlad_starkov has joined #ruby-lang
Jork1 has joined #ruby-lang
stiang has quit [Quit: stiang]
stiang has joined #ruby-lang
cantonic has quit [Quit: cantonic]
Madis_ has joined #ruby-lang
stiang has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 245 seconds]
stiang has joined #ruby-lang
stiang has quit [Client Quit]
vlad_starkov has joined #ruby-lang
Criztian has joined #ruby-lang
tenderlove has joined #ruby-lang
stiang has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
cantonic has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
stiang has quit [Quit: stiang]
tenderlove has quit [Ping timeout: 256 seconds]
<whitequark>
erikh: oops, I was distracted
<whitequark>
well, the problem with ruby_parser is that it couldn't distinguish between NODE_FCALL and NODE_VCALL
<whitequark>
i.e. "a()" and "a"
<whitequark>
which basically means that you can't have a working irb, because NODE_VCALL is required for "a = 1; eval("a", binding)" to work.
<whitequark>
OTOH, I discovered that Melbourne has a ruby_parser compatibility layer
chambwez has joined #ruby-lang
rue|w has joined #ruby-lang
cantonic_ has joined #ruby-lang
stiang has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<chambwez>
\q
<chambwez>
Morning, anyone around to help out with a newbie mintiest problem I'm having?
rue|w has quit [Ping timeout: 244 seconds]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
vlad_starkov has quit [Ping timeout: 245 seconds]
ruby-lang159 has joined #ruby-lang
<ddfreyne>
chambwez: just ask
<ddfreyne>
I may not be able to answer though but maybe others will
<chambwez>
Will do thanks.
<chambwez>
I'm running a really basic test but I'm getting 0 tests or assertions picked up. Also no errors. I'll pastie the test
<chambwez>
http://pastie.org/4878289 I was having problems getting tests to run for a class I'm building so have gone right the way back to a simply noddy test to rule out anything wrong with my class. I don't get any errors from running this.
ruby-lang159 has quit [Client Quit]
mars__ has joined #ruby-lang
seoaqua has joined #ruby-lang
<chambwez>
The puts in the setup is just there to confirm that setup isn't running.
stiang has quit [Quit: stiang]
stiang has joined #ruby-lang
ricardovaleriano has quit [Remote host closed the connection]
ricardovaleriano has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
stiang has quit [Quit: stiang]
stiang has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
Carnage\ has quit []
Mon_Ouie has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby-lang
jarib has quit [Excess Flood]
stiang has quit [Quit: stiang]
jarib has joined #ruby-lang
Jork1 has quit [Read error: Connection reset by peer]
Jork1 has joined #ruby-lang
workmad3 has joined #ruby-lang
datanoise has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
jbsan has quit [Quit: jbsan]
Bosox20051 has quit [Ping timeout: 244 seconds]
chambwez has quit [Quit: chambwez]
stiang has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
mytrile has quit [Quit: Leaving.]
tenderlove has joined #ruby-lang
anannie has quit [Ping timeout: 245 seconds]
tenderlove has quit [Ping timeout: 255 seconds]
milestone has joined #ruby-lang
Bosox20051 has joined #ruby-lang
Aaaarg has joined #ruby-lang
Aaaarg has quit [Excess Flood]
rue|w has joined #ruby-lang
rue_XIW has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
nXqd has joined #ruby-lang
mars__ has quit [Quit: Page closed]
rue_XIW has quit [Ping timeout: 244 seconds]
mars__ has joined #ruby-lang
mars__ has left #ruby-lang [#ruby-lang]
anannie has joined #ruby-lang
seoaqua has quit [Ping timeout: 260 seconds]
replore_ has joined #ruby-lang
yats has quit [Quit: Leaving]
yats has joined #ruby-lang
woollyams has joined #ruby-lang
canton7 has joined #ruby-lang
undersc0re97 has quit [Ping timeout: 246 seconds]
seoaqua has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
seoaqua has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby-lang
workmad3 has joined #ruby-lang
tenderlove has quit [Ping timeout: 252 seconds]
burgestrand1 has joined #ruby-lang
burgestrand1 has quit [Client Quit]
burgestrand has quit [Ping timeout: 246 seconds]
rue|w has joined #ruby-lang
corecode has left #ruby-lang [":wq"]
rue|w has quit [Ping timeout: 255 seconds]
Assurbanipal has joined #ruby-lang
Mellett68 has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
Madis_ has quit [Ping timeout: 256 seconds]
lcdhoffman has joined #ruby-lang
VegetableSpoon has joined #ruby-lang
tonni has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
stiang has quit [Quit: stiang]
Axsuul has quit [Ping timeout: 252 seconds]
burgestrand has joined #ruby-lang
postmodern has quit [Quit: Leaving]
RegEchse has joined #ruby-lang
jstemmer has quit [Quit: leaving]
nXqd has quit [Ping timeout: 244 seconds]
JohnBat26 has quit [Ping timeout: 246 seconds]
seoaqua has joined #ruby-lang
Jay_Levitt has quit [Quit: Jay_Levitt]
Jay_Levitt has joined #ruby-lang
yats has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby-lang
Madis_ has joined #ruby-lang
seoaqua has quit [Ping timeout: 252 seconds]
Jork1 has quit [Quit: Jork1]
tenderlove has quit [Ping timeout: 260 seconds]
rue|w has joined #ruby-lang
tRAS has joined #ruby-lang
jperry2_ has joined #ruby-lang
mytrile has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rue|w has quit [Ping timeout: 245 seconds]
nXqd has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
adambeynon has joined #ruby-lang
enebo has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
solars has joined #ruby-lang
sush24 has joined #ruby-lang
milestone has quit [Quit: milestone]
vlad_starkov has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
jperry2_ has quit [Quit: jperry2_]
tonni has quit [Remote host closed the connection]
conor_reedy has joined #ruby-lang
Jay has joined #ruby-lang
Jay has quit [Client Quit]
cjs226 has joined #ruby-lang
sush24 has quit [Read error: Connection reset by peer]
<fowkes>
Hey everyone. I'm having a bit of an issue with installation and databases on my server. If anyone could help, it would be much appreciated. Thanks. :) http://pastebin.com/dct6SVec
solars has quit [Ping timeout: 255 seconds]
rue|w has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
crackity_jones has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
yats has joined #ruby-lang
wallerdev has joined #ruby-lang
tenderlove has joined #ruby-lang
alexkira has quit [Remote host closed the connection]
VegetableSpoon has joined #ruby-lang
alexkira has joined #ruby-lang
Carnage\ has joined #ruby-lang
<steveklabnik>
you may want to ask in #rubyonrails
wyhaines has joined #ruby-lang
alexkira has quit [Ping timeout: 260 seconds]
tonni has joined #ruby-lang
<Spaceghostc2c>
steveklabnik: Is #RubyOnRails too ghetto for you, bruv?
<steveklabnik>
it has too much traffic
<steveklabnik>
i cannot effectively pay attention to it
<steveklabnik>
it's why i'm not subbed to ruby-talk any more either
mytrile has quit [Read error: Connection reset by peer]
<Spaceghostc2c>
steveklabnik: I'm down with that. When I choose to lend my time to things like this and the mailing list, I really like IRC as it's more interactive and closer to my style of communication.
<steveklabnik>
:)
fowkes has quit [Quit: Page closed]
<Spaceghostc2c>
steveklabnik: That issue I had got fixed. But I couldn't find somewhere to update documentation and form a pull request to change the description of the --edge and --dev switches.
ryanf has joined #ruby-lang
gregmore_ has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
gaveen has joined #ruby-lang
sepp2k1 has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
sepp2k has quit [Ping timeout: 245 seconds]
havenn has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
mixtli has joined #ruby-lang
Jork1 has quit [Read error: Connection reset by peer]
<andrewvos>
Wow, reflection in java is nowehere near as good as .NET.
<andrewvos>
(DISCLAIMER: As far as I know)
<andrewvos>
Also, the people in #java don't take any shit.
mohamad_ has joined #ruby-lang
jbsan has quit [Quit: jbsan]
<Spaceghostc2c>
andrewvos: Bug cool ruby people who do java. They're friendlier.
mixtli has quit [Ping timeout: 245 seconds]
<Spaceghostc2c>
And on the average, they have cooler accents.
mohamad_ has quit [Client Quit]
nochamani has joined #ruby-lang
<Erlkoenig>
hi, how to document a ruby program including docs of the API (like rdoc does) and also pages of longer text (explaining general concepts) which might include pictures and some markup in a way that integrates them both nicely?
<ryanf>
i think rdoc and yard let you add extra files of markdown or whatever
<andrewvos>
Spaceghostc2c: Don't know any people who are good with Java.
<ryanf>
rdoc
<ryanf>
i think
msch has quit [Quit: Coyote finally caught me]
msch has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
mixtli has quit [Ping timeout: 245 seconds]
crackity_jones has quit [Quit: Computer has gone to sleep.]
fbernier has quit [Read error: Connection reset by peer]
tRAS has joined #ruby-lang
<Spaceghostc2c>
andrewvos: A good group to ask are the jruby team or the torquebox team.
<matti>
;]
<andrewvos>
Thanks Spaceghostc2c
adambeynon has joined #ruby-lang
yats has quit [Ping timeout: 246 seconds]
cirenyc has joined #ruby-lang
mohamad_ has joined #ruby-lang
mohamad_ has quit [Client Quit]
nochamani has joined #ruby-lang
<cirenyc>
Trying to use Array#find with a hash such that each key/value in the hash is passed as a boolean test in the find block. i.e., find { key1 == value1 && key2 == value2 && ..}
nochamani has left #ruby-lang [#ruby-lang]
<cirenyc>
I'm not sure how to turn the hash into the series of booleans.
<Erlkoenig>
hm i think i'll use yard, thanks guys :)
<ryanf>
cirenyc: where do the values in the array come into it?
<ryanf>
sounds like something you could do with inject/reduce but i don't really get what you're trying to do
<cirenyc>
ryanf: I am basically trying to reduce an array of elements to those that match all of the conditions passed into a method as a hash
bmaland has quit [Remote host closed the connection]
<ryanf>
oh, you want select/find_all, first of all, not find
<cirenyc>
ryanf: yes
<ryanf>
and then you could use Enumerable#all? on the hash
<ryanf>
so for each k/v in the hash, given one value from the array, return true or false
<cirenyc>
not following exactly, but let me read up on those methods
benanne has quit [Quit: kbai]
gaveen has quit [Remote host closed the connection]
Fretta has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
cirenyc has quit [Quit: Leaving...]
wyhaines has quit [Remote host closed the connection]
arkiver has joined #ruby-lang
burgestrand1 has joined #ruby-lang
burgestrand has quit [Ping timeout: 246 seconds]
nochamani has joined #ruby-lang
milestone has joined #ruby-lang
Madis_ has quit [Remote host closed the connection]
tRAS has quit [Quit: Mother, did it need to be so high?]
Madis_ has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
goshakkk has quit [Quit: Computer has gone to sleep.]
nochamani has left #ruby-lang [#ruby-lang]
swarley has joined #ruby-lang
solars has joined #ruby-lang
richardjortega has joined #ruby-lang
rue|w has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
rue|w has quit [Ping timeout: 260 seconds]
goshakkk has joined #ruby-lang
ryanf has joined #ruby-lang
Nichotin has quit [Quit: leaving]
headius has joined #ruby-lang
alexkira has joined #ruby-lang
milestone has left #ruby-lang [#ruby-lang]
Nisstyre has joined #ruby-lang
alexkira has quit [Read error: Connection reset by peer]
fromhet_ has joined #ruby-lang
fromhet has quit [Ping timeout: 240 seconds]
fromhet_ is now known as fromhet
alexkira has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
mixtli_ has joined #ruby-lang
rippa has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby-lang
kain_ has quit [Ping timeout: 245 seconds]
arooni-mobile has joined #ruby-lang
swarley has quit [Quit: Leaving]
swarley has joined #ruby-lang
postmodern has joined #ruby-lang
jperry2_ has joined #ruby-lang
MSU_ has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
jperry2_ has quit [Client Quit]
setmeaway has quit [Quit: Leaving]
msch has quit [Quit: Coyote finally caught me]
setmeaway has joined #ruby-lang
msch has joined #ruby-lang
cirenyc has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
arkiver has quit [Quit: Leaving]
brianpWins has joined #ruby-lang
alexkira has quit [Remote host closed the connection]
alexkira has joined #ruby-lang
jbsan has joined #ruby-lang
kain_ has joined #ruby-lang
alexkira_ has joined #ruby-lang
alexkira has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
alexkira has joined #ruby-lang
snk_ has joined #ruby-lang
snk_ is now known as snk
alexkira_ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
alexkira has quit [Remote host closed the connection]
alexkira has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
alexkira_ has quit [Remote host closed the connection]
alexkira has joined #ruby-lang
micaeked has quit [Ping timeout: 246 seconds]
alexkira has quit [Ping timeout: 260 seconds]
macmartine has joined #ruby-lang
<arooni-mobile>
in ruby 1.9.3 whats the best method to extract out one given bit of string? ... "string".match(/()/) ?
<Erlkoenig>
given by what? indices?
solars has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
If you just want the part of the string matched by a regexp, use String#[] (which also happens to be the method you'd use given two indices or an index and a length)
<arooni-mobile>
i want to extract out the bit of string that matches within my regex
<Mon_Ouie>
"foo 19 bar"[/\d+/] # => "19"
<arooni-mobile>
cool
<matti>
Hi Mon_Ouie
<Mon_Ouie>
'alut
<bougyman>
you could go exotic
<bougyman>
"string".match(/(?<foo>ing)/)[:foo]
<bougyman>
=> "ing"
mars___ has joined #ruby-lang
<matti>
Mon_Ouie: How would you go about finding random FizzBuzz in a given range.
rue|w has joined #ruby-lang
<matti>
Mon_Ouie: For instance: 1 to 100, find random FizzBuzz.
<matti>
Mon_Ouie: Same for Fizz and Buzz.
<Mon_Ouie>
random FizzBuzz?
<matti>
Yes!
<Mon_Ouie>
Random multiple of 15?
crackity_jones has joined #ruby-lang
<Mon_Ouie>
There are (99/15) multiple of 15 within 1..100 (you'd have to adjust depending on start % 15 for a more generic range), so take a random number from 0 to that, and multiply it by 15
kain_ has joined #ruby-lang
<arooni-mobile>
im trying to match stuff like: my+string+has+plusses
<arooni-mobile>
but if i do ([\w\+])* doesnt seem to work
<arooni-mobile>
how can i match the pluses... i thought simply doing a \+ should escape it
<lianj>
arooni-mobile: no need to escape inside []
<lianj>
/[\w+]+/
<arooni-mobile>
cool thanks
Mon_Ouie has quit [Ping timeout: 245 seconds]
<arooni-mobile>
+ == 1 or more .. where as * is 0 or 1 or more
rfay has joined #ruby-lang
replore has joined #ruby-lang
kain_ has quit [Ping timeout: 245 seconds]
replore has quit [Ping timeout: 246 seconds]
mars___ has left #ruby-lang [#ruby-lang]
mars___ has joined #ruby-lang
mars___ has quit [Quit: mars___]
jtoy has joined #ruby-lang
mars__ has joined #ruby-lang
rfay has quit [Quit: This computer has gone to sleep]
YayMe has joined #ruby-lang
<TylerGillies>
monkey patching time yields some interesting method names: "this took #{ Time.me{ sleep 2}} seconds to execute" #=> "this took 2.000288 seconds to execute"
ryanf has joined #ruby-lang
rue|w has quit [Ping timeout: 244 seconds]
rue|w has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
Carnage\ has quit []
mars__ has left #ruby-lang [#ruby-lang]
rue|w has quit [Ping timeout: 246 seconds]
kain_ has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
nXqd has quit [Ping timeout: 255 seconds]
qpingu has joined #ruby-lang
ryanf_ has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
ryanf has quit [Read error: Connection reset by peer]
jtoy has quit [Quit: jtoy]
brianpWins has quit [Quit: brianpWins]
seanstickle has joined #ruby-lang
burgestrand has quit [Ping timeout: 252 seconds]
thone has joined #ruby-lang
kain_ has quit [Ping timeout: 260 seconds]
Hakon has joined #ruby-lang
jtoy has joined #ruby-lang
thone_ has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
jtoy has quit [Client Quit]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
dfr|mac has joined #ruby-lang
jackhammer2022 is now known as GodAteMyHomework
Hakon has quit [Quit: Leaving...]
rue|w has joined #ruby-lang
<arooni-mobile>
if i declare @vars within intialize withina class
<arooni-mobile>
why cant i access them later like @instance.instance_varname
<Erlkoenig>
because they are to be accesed via @var
<Erlkoenig>
if you want to access it via instance.varname you have to write "attr_reader :var" in the class' body
crackity_jones has quit [Quit: Computer has gone to sleep.]
alexkira has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
setmeaway has joined #ruby-lang
chimkan has joined #ruby-lang
rue|w has quit [Ping timeout: 246 seconds]
kain_ has quit [Ping timeout: 245 seconds]
<Erlkoenig>
can i tell YARD to not use the alphabetical index as the index.html page, but my "general.md" file which is also included into the doc, but normally "hidden" in the menu?
Criztian has joined #ruby-lang
<Erlkoenig>
so that i can upload the doc tree to my webserver, and visitors will see the "general.md" file as the front page rather than the index
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
seanstickle has quit [Quit: seanstickle]
BMF has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
VegetableSpoon has quit [Remote host closed the connection]
<richardjortega>
how would you parse a date like "8/8/12"
workmad3 has quit [Ping timeout: 248 seconds]
<richardjortega>
not sure what the date template would be
replore_ has joined #ruby-lang
<whitequark>
richardjortega: no way
<whitequark>
require your users to enter iso-8601, or at least avoid crazy i.e. US dates.
<richardjortega>
haha
<richardjortega>
yes, US is very difficult with inputted fields
<whitequark>
also, SI units
* whitequark
hides
<Erlkoenig>
there is a SI unit for dates? :D
<whitequark>
Erlkoenig: nope
<whitequark>
well
<Erlkoenig>
it would have months with 10 days and years with 1000 days or what :D
<whitequark>
I guess that unix timestamp qualifies as a SI date
<whitequark>
it's in seconds after all
kain_ has quit [Ping timeout: 240 seconds]
<whitequark>
"let's meet 86400 seconds later!"
<Erlkoenig>
aren't SI units also meant for easy usage? :D
* whitequark
measures milk in cubic meters
<Erlkoenig>
hello, i'd like one thousandst of a cubic meter of milk
<whitequark>
yeah, like that
<richardjortega>
too funny
<whitequark>
or: "yesterday I drank about 2e-7 m^3 of milk at 4°C. it was great!"
* richardjortega
i'll take a quart of milk
<whitequark>
you could also add error margins, 'cause you don't know the precise temperature inside your refrigerator, and in fact there isn't a single one
<Erlkoenig>
whitequark: you meant 277 K?
<whitequark>
but you obviously know its statistical properties
<whitequark>
Erlkoenig: oh sure
<richardjortega>
good 'ole US units
<whitequark>
277±2.5K
<whitequark>
was there a plug-in for rendering TeX in IRC? I will probably need it
chimkan___ has joined #ruby-lang
<whitequark>
through... 2×10¯⁷
<whitequark>
unicode works fine too
<richardjortega>
ok so i go it working thanks to a suggestion in RoR room
jperry2_ has joined #ruby-lang
<whitequark>
richardjortega: oh, did they package libastral as a gem?