<erichmenge>
santosh: classes are instances of Class.
<erichmenge>
class is a keyword, Class is a… Class.
<rpdmatt>
ya a class in ruby is an object of class Class
<rpdmatt>
from what i understand
goatish_mound has quit [Quit: Computer has gone to sleep.]
<santosh>
erichmenge: got it!
santosh has quit [Quit: Bye!]
stonerfish has quit [Quit: Leaving.]
postmodern has joined #ruby-lang
towski has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
gjaldon has joined #ruby-lang
ryez has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
agarie has quit [Remote host closed the connection]
sailias has joined #ruby-lang
guns has quit [Quit: guns]
mjio has quit []
spuk has joined #ruby-lang
mjio has joined #ruby-lang
jimmyy has quit [Read error: Connection reset by peer]
cjs226 has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
chuenjin has quit [Quit: leaving]
chuenjin has joined #ruby-lang
swav has joined #ruby-lang
datanoise has joined #ruby-lang
swav has quit [Ping timeout: 240 seconds]
chuenjin_ has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
jxie has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby-lang
jxie has joined #ruby-lang
soypirate has quit [Remote host closed the connection]
chuenjin has quit [Ping timeout: 248 seconds]
chuenjin has joined #ruby-lang
chuenjin_ has quit [Ping timeout: 248 seconds]
Rarrikins_x_k has joined #ruby-lang
karasawa has quit [Ping timeout: 260 seconds]
Rarrikins_x has quit [Ping timeout: 244 seconds]
thufir_ has joined #ruby-lang
thufir_1 has joined #ruby-lang
thufir_1 has quit [Client Quit]
tdy has quit [Read error: Connection reset by peer]
rpdmatt has quit [Read error: Connection reset by peer]
rpdmatt has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
datanoise has quit [Ping timeout: 256 seconds]
serhart has quit [Quit: Leaving.]
imperator3 has joined #ruby-lang
imperator3 has quit [Client Quit]
gokul has joined #ruby-lang
dc5ala has joined #ruby-lang
levifig has quit [Excess Flood]
levifig has joined #ruby-lang
rpdmatt has quit [Quit: Leaving]
waffleau has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
takuma7 has quit [Quit: takuma7]
karasawa has joined #ruby-lang
gregmoreno has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
rippa has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
tempestrun has quit [Quit: Left.]
gregmoreno has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
tdy has joined #ruby-lang
tdy has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby-lang
gregmoreno has joined #ruby-lang
thufir_ has quit [Remote host closed the connection]
gjaldon has quit [Remote host closed the connection]
gregmoreno has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
Rarrikins_x_k_m has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
Rarrikins_x_k has quit [Ping timeout: 255 seconds]
tomzx_mac_ has joined #ruby-lang
towski has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 248 seconds]
<ten1>
wow. "An Object in Ruby 1.9.3 has 56 methods. An Object in Rails has more than double the number of methods (118). An ActiveRecord Object has even more: 366"
<ten1>
plus method_missing
waffleau has quit [Quit: waffleau]
serhart has joined #ruby-lang
kogent has joined #ruby-lang
lsegal has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
paul0 has joined #ruby-lang
<paul0>
I'm trying to port ruby to Haiku, and when I'm compiling it returns me an error: ./enc/depend:101:in `read': No such file or directory - ./enc/trans/che.trans (Errno::ENOENT)
<paul0>
what is this che.trans?
spuk has joined #ruby-lang
thufir_1 has joined #ruby-lang
thufir_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
thufir_ has quit [Client Quit]
sailias has quit [Quit: Leaving.]
kogent has quit [Quit: kogent]
huydx has joined #ruby-lang
blahwoop has joined #ruby-lang
<blahwoop>
hey guys
<blahwoop>
anybody around?
mercwithamouth has quit [Ping timeout: 240 seconds]
spuk has quit [Read error: Operation timed out]
Averna has quit [Ping timeout: 252 seconds]
Averna has joined #ruby-lang
mercwithamouth has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 256 seconds]
datanoise has joined #ruby-lang
chuenjin has quit [Ping timeout: 252 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
tdy has joined #ruby-lang
robbyoconnor has joined #ruby-lang
crazyhorse has joined #ruby-lang
<crazyhorse>
how do you find a list of duplicates in array in 1.9
glebm has quit [Quit: Computer has gone to sleep.]
RWN has joined #ruby-lang
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
dhruvasagar has joined #ruby-lang
RWN has quit [Ping timeout: 256 seconds]
Criztian has quit [Ping timeout: 240 seconds]
micaeked has quit [Quit: WeeChat 0.3.9.2]
judofyr has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
cyri_ has joined #ruby-lang
judofyr has joined #ruby-lang
lcdhoffman has joined #ruby-lang
thisirs has joined #ruby-lang
<hackeron>
how would I pad a string with 2 zeros at the end? - For example "%06d" % value pads the zeros at the beginning - anything similar to pad with zeros at the end?
wyhaines has quit [Remote host closed the connection]
lun__ has quit [Remote host closed the connection]
jxie has joined #ruby-lang
<vbatts>
zzak: :-)
dvorak has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby-lang
mikepawlak408 has joined #ruby-lang
lzhz has left #ruby-lang [#ruby-lang]
dvorak has joined #ruby-lang
joshcheek has joined #ruby-lang
davidbalber|away is now known as davidbalbert
maxmanders has joined #ruby-lang
joshcheek has quit [Client Quit]
maxmanders has quit [Client Quit]
<yorickpeterse>
Is there any gem that lets me build nested hashes in a syntax similar to something like `person { name('Yorick') }` which would result in `{'person' => {'name' => 'Yorick'}}`?
<yorickpeterse>
This is for a DSL and while I have a hack together that sort of does this it's not very pretty
Kuifje has joined #ruby-lang
<yorickpeterse>
Basically Builder but for the Hash class
srbaker has quit [Quit: Computer has gone to sleep.]
gnufied has quit [Quit: Leaving.]
dabradley has quit [Quit: WeeChat 0.3.8]
<zzak>
vbatts: my commit is slacking
maxmanders has quit [Quit: Computer has gone to sleep.]
<vbatts>
zzak: ?
karasawa has quit [Ping timeout: 245 seconds]
gnufied has joined #ruby-lang
gnufied has quit [Client Quit]
enebo has joined #ruby-lang
andrewhl has joined #ruby-lang
karasawa has joined #ruby-lang
dabradley has joined #ruby-lang
Criztian has quit [Ping timeout: 248 seconds]
ddv has quit [Ping timeout: 240 seconds]
<yorickpeterse>
you rack discirpine
<yorickpeterse>
* disciprine, whatever
stardiviner has joined #ruby-lang
_paul0 has quit [Ping timeout: 252 seconds]
<zzak>
vbatts: its been a while
_paul0 has joined #ruby-lang
<vbatts>
ah
<zzak>
ive only committed small patches in the last month
<vbatts>
yeah
<zzak>
been taking time to work on my presentation, and be with family
<vbatts>
also good things to do ;-)
stardiviner has quit [Client Quit]
<zzak>
your patches look good
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
<zzak>
especially glad youre working on drb
apeiros_ has quit [Remote host closed the connection]
<zzak>
last time i was in boston, mark bates was complaining how poor they were when he wrote his 'distributed ruby' book
ddv has joined #ruby-lang
<matti>
zzak: :)
<injekt>
zzak: <3
<vbatts>
zzak: yeah. i was a bit surprised with the undocumentation there.
esad has quit [Quit: Computer has gone to sleep.]
<vbatts>
but that's the thing i love most about working on the documentation, is how indepth i learn about cool things in stdlib that i never have looked into before ;-)
<zzak>
exactly
<zzak>
inkjet matti :D
outoftime has joined #ruby-lang
<vbatts>
just like curses. so much neat there, but good luck to anyone that could've *guessed* how to use it, without being previously familiar with curses and no documentation. at all.
mercwithamouth has joined #ruby-lang
<zzak>
i would analogize the stdlib with an impressionist gallery at a lesser known museum that youve found by accident, only to realize its true beauty after spending many hours pondering each stroke
bfreeman has quit [Quit: bfreeman]
mercwithamouth has quit [Ping timeout: 256 seconds]
stardiviner has joined #ruby-lang
outoftime has quit [Quit: Leaving]
<vbatts>
ahahah
<vbatts>
:-)
methods has left #ruby-lang [#ruby-lang]
judofyr has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 244 seconds]
spike|spiegel has joined #ruby-lang
maxmanders has quit [Client Quit]
Uranio has joined #ruby-lang
spike|spiegel has quit [Ping timeout: 256 seconds]
bzalasky has joined #ruby-lang
esad has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<hackeron>
I have a file "lib/dsc_command.rb" - I'm trying to do require "lib/dsc_command.rb" but it's saying no such file - what am I doing wrong?
maxmanders has joined #ruby-lang
zmack has joined #ruby-lang
<whitequark>
oh curses
breakingthings has joined #ruby-lang
banisterfiend has joined #ruby-lang
io_syl has joined #ruby-lang
wyhaines has joined #ruby-lang
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Read error: Connection reset by peer]
maxmanders has quit [Quit: Computer has gone to sleep.]
<injekt>
hackeron: the current working directory isn't in the LOAD_PATH in >=1.9 so you either need to use require_relative or require './lib/desc_command'
<injekt>
if it's for a gem, I would recommend neither of these, though
<injekt>
(rubygems adds your lib/ dir to the load path already)
outoftime has joined #ruby-lang
esad has quit [Ping timeout: 244 seconds]
<whitequark>
injekt: but won't require_relative be faster than require?
<whitequark>
if there's a lot of stuff in $:
<injekt>
that's probably splitting hairs
<whitequark>
injekt: I'd say no, given the amount of optimizations which were applied to $:
<whitequark>
and the ~2x or so improvement on raw rails startup time
<injekt>
so maybe it wasn't splitting hairs before these optimizations
<whitequark>
well. indeed :)
blazes816 has joined #ruby-lang
alvaro_o has joined #ruby-lang
esad has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
<injekt>
I just dont really like require_relative
banisterfiend has quit [Read error: Connection reset by peer]
<whitequark>
I liked it until I bumped into a bug where it didn't work from inside warbled and compiled files
carloslopes has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<hackeron>
injekt: ah, sweet, I'll use rubygems and bundler :)
<injekt>
hackeron: if you use rubygems and want to test locally, the -I flag is your friend
rippa has joined #ruby-lang
<injekt>
ruby -Ilib lib/foo.rb is how I do it
imperator has joined #ruby-lang
jonahR has joined #ruby-lang
<hackeron>
injekt: ah, sweet, that works, thanks :)
retro|cz has quit [Read error: Connection reset by peer]
agile has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
itsmeduncan has quit [Quit: itsmeduncan]
tdy has quit [Quit: WeeChat 0.4.0]
zmack has joined #ruby-lang
tdy has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
headius has joined #ruby-lang
__butch__ has joined #ruby-lang
banisterfiend has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
GarethAdams has quit [Quit: Leaving...]
gregmoreno has joined #ruby-lang
cyri_ has joined #ruby-lang
RWN has quit [Remote host closed the connection]
bfreeman has joined #ruby-lang
carloslopes has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
cirwin has joined #ruby-lang
ten1 has joined #ruby-lang
carloslopes has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby-lang
lele|w has quit [Ping timeout: 264 seconds]
vesan has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby-lang
agnitio has quit [Quit: Leaving]
itsmeduncan has joined #ruby-lang
carloslopes has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
__butch__ has quit [Quit: Leaving.]
alvaro_o has quit [Quit: Ex-Chat]
alvaro_o has joined #ruby-lang
lele|w has joined #ruby-lang
Croves has joined #ruby-lang
<Croves>
What's the Ruby On Rails channel?
<rippa>
#rails
<Croves>
Well, I tough so :P
<Croves>
Thank you, sir!
__butch__ has joined #ruby-lang
<ericwood>
#irc-on-railz
esad has joined #ruby-lang
<tbuehlmann>
Croves, #RubyOnRails
vesan has joined #ruby-lang
kogent has joined #ruby-lang
karasawa has quit [Ping timeout: 256 seconds]
__butch__ has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
breakingthings has quit []
bondar has joined #ruby-lang
vesan has quit [*.net *.split]
slaytanic has quit [*.net *.split]
znz_jp has quit [*.net *.split]
corundum has quit [*.net *.split]
singpolyma has quit [*.net *.split]
DefV has quit [*.net *.split]
amdprophet has quit [*.net *.split]
grandy has quit [*.net *.split]
pkondzior__ has quit [*.net *.split]
abuiles_ has quit [*.net *.split]
whitequark has quit [*.net *.split]
whitequark has joined #ruby-lang
corundum has joined #ruby-lang
pbjorklund has joined #ruby-lang
slaytanic has joined #ruby-lang
amdprophet has joined #ruby-lang
pkondzior__ has joined #ruby-lang
grandy has joined #ruby-lang
abuiles_ has joined #ruby-lang
rippa has quit [Ping timeout: 276 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
glebm has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<yfeldblum>
chris2, in ruby, i like to not stub the things an object depends on directly, but am ok with stubbing the the object's second-level dependencies; this rule applies to duck-typed languages and not really to statically-typed languages
<yfeldblum>
freedrull, ^
<freedrull>
yfeldblum: can you give an example of a second-level dependency
<yfeldblum>
freedrull, if you're testing a tweet-sending controller, you can give the real TweetManager instance but a mock HttpClient instance that the TweetManager relies on
<freedrull>
oh ok
<yfeldblum>
freedrull, the tweet-sending controller calls the real methods on the TweetManager, but that only goes so far before encountering the stubbed methods on, or the mock of, the HttpClient instance
DefV has joined #ruby-lang
karasawa has joined #ruby-lang
pbjorklund has quit [Quit: oh no]
<yfeldblum>
freedrull, hope that makes sense
<freedrull>
yfeldblum: that makes sense
vesan has joined #ruby-lang
<freedrull>
i mean its easy to think of an httpclient as something we would want to mock, the first thing that comes to mind is that you don't want to make requests during a test.
<freedrull>
i can't really think of another example
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
__butch__ has joined #ruby-lang
LanceHaig has left #ruby-lang ["Leaving"]
cirwin has quit [Quit: Leaving.]
cyri_ has quit [Quit: cyri_]
<zzak>
testing file io using TempFile
sepp2k1 has joined #ruby-lang
Bearproof has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
Bearproof has quit [Client Quit]
skyjumper has left #ruby-lang [#ruby-lang]
glebm has quit [Quit: Computer has gone to sleep.]
Kuifje has quit [Read error: Connection reset by peer]
Axsuul has joined #ruby-lang
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
marr has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Remote host closed the connection]
kennyvb has quit [Read error: Operation timed out]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
brianpWins has joined #ruby-lang
datanoise has joined #ruby-lang
kennyvb has joined #ruby-lang
bzb has joined #ruby-lang
cirwin has joined #ruby-lang
swav has quit [Remote host closed the connection]
bondar has quit [Quit: Leaving]
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
pkrnj has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
glebm has joined #ruby-lang
breakingthings has joined #ruby-lang
benanne has joined #ruby-lang
megha has quit [Quit: WeeChat 0.3.9.2]
pkrnj has joined #ruby-lang
tmi_ has joined #ruby-lang
zmack has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 246 seconds]
itsmeduncan has quit [Quit: itsmeduncan]
ten1 is now known as ten1_afk
Kuifje has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby-lang
maxmanders has quit [Max SendQ exceeded]
maxmanders has joined #ruby-lang
glebm has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby-lang
glebm has joined #ruby-lang
Axsuul has quit [Ping timeout: 240 seconds]
itsmeduncan has joined #ruby-lang
karasawa has quit [Ping timeout: 260 seconds]
cyri_ has joined #ruby-lang
havenn has joined #ruby-lang
benanne has quit [Remote host closed the connection]
benanne has joined #ruby-lang
urbanmonk has joined #ruby-lang
nguerin has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 256 seconds]
nguerin has joined #ruby-lang
sora_h_ has joined #ruby-lang
sora_h_ has quit [Client Quit]
mossplix has joined #ruby-lang
nguerin has quit [Ping timeout: 256 seconds]
swav has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
_paul0 has quit [Excess Flood]
_paul0 has joined #ruby-lang
bzb has quit [Quit: Leaving]
swav has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
Uranio has quit [Quit: while you reading this, a kitty dies]
apeiros_ has joined #ruby-lang
marr has joined #ruby-lang
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
xalei has joined #ruby-lang
apeiros has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
cyri_ has quit [Quit: cyri_]
datanoise has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
banisterfiend has quit [Remote host closed the connection]