apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
havenwood has joined #ruby-lang
Glass_saga has joined #ruby-lang
lsegal has joined #ruby-lang
lsegal` has quit [Ping timeout: 264 seconds]
lsegal` has joined #ruby-lang
mdedetrich has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
lsegal has quit [Ping timeout: 248 seconds]
Forgetful_Lion has joined #ruby-lang
lsegal has joined #ruby-lang
kurko_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 276 seconds]
lsegal` has quit [Ping timeout: 264 seconds]
lsegal` has joined #ruby-lang
bungoman has joined #ruby-lang
lsegal has quit [Ping timeout: 264 seconds]
lsegal has joined #ruby-lang
lsegal` has quit [Ping timeout: 248 seconds]
lsegal` has joined #ruby-lang
marr has quit [Ping timeout: 240 seconds]
lsegal has quit [Ping timeout: 256 seconds]
superfred has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
dingus_khan has joined #ruby-lang
lsegal` has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
lsegal` has joined #ruby-lang
dingus_khan has quit [Ping timeout: 248 seconds]
lsegal has quit [Ping timeout: 264 seconds]
lsegal has joined #ruby-lang
lsegal has left #ruby-lang [#ruby-lang]
mdedetrich has quit [Quit: Computer has gone to sleep.]
lsegal` has quit [Ping timeout: 246 seconds]
toretore has quit [Quit: Leaving]
ssb123 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
ssb123 has joined #ruby-lang
nignaztic has quit [Quit: Leaving]
ssb123 has quit [Ping timeout: 245 seconds]
setmeaway has joined #ruby-lang
joshuawscott has joined #ruby-lang
kurko_ has quit [Ping timeout: 246 seconds]
kurko_ has joined #ruby-lang
postmodern has joined #ruby-lang
wmoxam has joined #ruby-lang
LauraE has quit [Quit: Leaving]
banaan has quit [Quit: kbai]
dsagsda has joined #ruby-lang
dsagsda has quit [Excess Flood]
ssb123 has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arooni-mobile has joined #ruby-lang
mistym has joined #ruby-lang
kurko_ has quit [Ping timeout: 246 seconds]
ssb123 has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
Terry_ is now known as tebaugh
go|dfish has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
tebaugh has quit [Quit: Textual IRC Client: www.textualapp.com]
go|dfish has joined #ruby-lang
dingus_khan has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
Terry_ has joined #ruby-lang
Terry_ is now known as TEbaugh
charliesome has joined #ruby-lang
kurko_ has joined #ruby-lang
dingus_khan has quit [Ping timeout: 276 seconds]
cheddar_bot has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cheddar_bot has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
mdedetrich has joined #ruby-lang
kurko_ has quit [Client Quit]
TEbaugh has quit [Quit: Textual IRC Client: www.textualapp.com]
joshwlewis has joined #ruby-lang
ffio has joined #ruby-lang
fenicks has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
joshwlewis has quit [Client Quit]
arooni-mobile has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby-lang
maxmanders has joined #ruby-lang
heftig has quit [Ping timeout: 264 seconds]
heftig has joined #ruby-lang
cheddar__ has joined #ruby-lang
maxmanders has quit [Ping timeout: 268 seconds]
cheddar_bot has quit [Ping timeout: 246 seconds]
cheddar__ has quit [Remote host closed the connection]
thepumpkin has quit [Remote host closed the connection]
joshuawscott has quit [Quit: Leaving.]
hogeo has joined #ruby-lang
maxmanders has joined #ruby-lang
hogeo_ has quit [Ping timeout: 245 seconds]
jsullivandigs has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
io_syl has quit [Quit: io_syl]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
kstuart has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
D2of3 has joined #ruby-lang
D2of3 has quit [Client Quit]
mdedetrich has joined #ruby-lang
maxmanders has quit [Ping timeout: 264 seconds]
mistym has quit [Ping timeout: 276 seconds]
kstuart has joined #ruby-lang
mdedetrich has quit [Client Quit]
fedesilv_ has joined #ruby-lang
fedesilva has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
mdedetrich has joined #ruby-lang
bzalasky has joined #ruby-lang
maxmanders has joined #ruby-lang
kurko_ has joined #ruby-lang
havenwood has joined #ruby-lang
joshuawscott has joined #ruby-lang
maxmanders has quit [Ping timeout: 268 seconds]
wmoxam has quit [Read error: Connection reset by peer]
fosky has joined #ruby-lang
yfeldblum has joined #ruby-lang
wmoxam has joined #ruby-lang
cheddar_bot has joined #ruby-lang
aef has quit [Remote host closed the connection]
aef has joined #ruby-lang
fosky has quit [Ping timeout: 245 seconds]
cheddar_bot has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
fosky has joined #ruby-lang
maxmanders has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Remote host closed the connection]
fosky has quit [Ping timeout: 260 seconds]
dingus_khan has joined #ruby-lang
dingus_khan has quit [Ping timeout: 264 seconds]
wmoxam has quit [Read error: No route to host]
maxmanders has joined #ruby-lang
ffio_ has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
ssb123 has joined #ruby-lang
mdedetrich has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
maxmanders has quit [Ping timeout: 256 seconds]
linc01n has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Client Quit]
jsullivandigs has quit [Ping timeout: 256 seconds]
ssb123 has quit [Ping timeout: 245 seconds]
linc01n has joined #ruby-lang
mdedetrich has joined #ruby-lang
joshuawscott has joined #ruby-lang
joshuawscott has quit [Client Quit]
kurko_ has quit [Ping timeout: 268 seconds]
kurko_ has joined #ruby-lang
jrobeson has quit [Ping timeout: 245 seconds]
linc01n has quit [Ping timeout: 260 seconds]
linc01n has joined #ruby-lang
jrobeson has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
grosscol has joined #ruby-lang
grosscol has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
kurko_ has quit [Quit: Computer has gone to sleep.]
scottschecter has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby-lang
scottschecter has joined #ruby-lang
joshuawscott has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
gja has joined #ruby-lang
mdedetrich has quit [Ping timeout: 276 seconds]
mdedetrich has joined #ruby-lang
charliesome has joined #ruby-lang
yfeldblum has quit [Ping timeout: 276 seconds]
tomzx_mac has quit [Ping timeout: 260 seconds]
mdedetri_ has joined #ruby-lang
mdedetrich has quit [Ping timeout: 248 seconds]
mdedetri_ has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
mdedetrich has joined #ruby-lang
gja has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 276 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
joshuawscott has quit [Quit: Leaving.]
bzalasky has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
ryez has joined #ruby-lang
io_syl has quit [Quit: io_syl]
joshuawscott has joined #ruby-lang
gja has joined #ruby-lang
mdedetrich has joined #ruby-lang
efrainolivares has joined #ruby-lang
mdedetrich has quit [Client Quit]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Ping timeout: 246 seconds]
efrainolivares has quit [Ping timeout: 256 seconds]
efrainolivares has joined #ruby-lang
efrainolivares has quit [Client Quit]
ffio_ has quit [Quit: WeeChat 0.4.1]
_jpb_ has joined #ruby-lang
mdedetrich has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mdedetrich has quit [Ping timeout: 268 seconds]
bzalasky has joined #ruby-lang
hashkey has quit [Quit: Leaving]
_jpb_ has quit [Ping timeout: 248 seconds]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
joshuawscott has quit [Quit: Leaving.]
relix has joined #ruby-lang
benlovell has joined #ruby-lang
solars has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has quit [Ping timeout: 256 seconds]
thepumpkin has joined #ruby-lang
geson has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
hashkey has joined #ruby-lang
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
hashkey has quit [Read error: Connection reset by peer]
joshuawscott has joined #ruby-lang
havenwood has joined #ruby-lang
hashkey has joined #ruby-lang
sjltaylor has joined #ruby-lang
joshuawscott has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
marr has joined #ruby-lang
benlovell has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
toretore has joined #ruby-lang
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
nneko001__ has joined #ruby-lang
bzalasky has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
nneko001__ has quit [Quit: Konversation terminated!]
benlovell has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby-lang
geson has quit [Quit: Leaving.]
ledestin has joined #ruby-lang
hashkey has quit [Quit: Leaving]
mistym has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.1]
cheddar_bot has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
hogeo_ has joined #ruby-lang
havenwood has joined #ruby-lang
hogeo has quit [Ping timeout: 260 seconds]
maxmanders has joined #ruby-lang
maxmanders has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
joshuawscott has joined #ruby-lang
workmad3 has joined #ruby-lang
havenwood has joined #ruby-lang
mbj has joined #ruby-lang
joshuawscott has quit [Ping timeout: 264 seconds]
Senjai has quit [Quit: sleepy time]
pskosinski has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
GeissT has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<ljarvis> :)
havenwood has quit [Ping timeout: 248 seconds]
apeiros_ has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
<ndrst> is there a usable Rubygems proxy?
vlad_starkov has quit [Ping timeout: 256 seconds]
MaddinXx_ has joined #ruby-lang
joshuawscott has joined #ruby-lang
joshuawscott has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
jsullivandigs has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
cheddar_bot has quit [Remote host closed the connection]
jsullivandigs has quit [Ping timeout: 256 seconds]
mistym has quit [Ping timeout: 264 seconds]
cheddar_bot has joined #ruby-lang
<ledestin> ndrst: maybe it uses http_proxy?
<ndrst> I would like to have a local (ci) ruby gems cache/proxy
yatish27 has joined #ruby-lang
cheddar_bot has quit [Remote host closed the connection]
realDAB has joined #ruby-lang
havenwood has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
benanne has joined #ruby-lang
thang has quit [Read error: Operation timed out]
thang has joined #ruby-lang
sush24 has joined #ruby-lang
MaddinXx_ has quit [Read error: Connection reset by peer]
Maddin___ has joined #ruby-lang
<ledestin> who prevents you from having a http proxy locally?
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 256 seconds]
<ndrst> ~20 different machines on different vlans
nneko001__ has joined #ruby-lang
AndChat| has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby-lang
Maddin___ has quit [Remote host closed the connection]
rickruby has joined #ruby-lang
benlovell has joined #ruby-lang
joshuawscott has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 264 seconds]
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
<ledestin> well, then a local proxy wouldn't be good would it?
joshuawscott has quit [Ping timeout: 245 seconds]
<ledestin> might be a misunderstanding
<ledestin> well, have a http proxy and use http_proxy to set it up if gems do support it
pskosinski has quit [Quit: Til rivido Idisti!]
sush24 has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
thebastl has joined #ruby-lang
havenwood has joined #ruby-lang
<ndrst> hm that would be an idea, can I tell bundler to use a proxy?
<ledestin> that's what you have to find out
<ledestin> and not bundler, gem
benlovell has quit [Ping timeout: 256 seconds]
<ndrst> ledestin: thanks for the input! maybe that works! (:
<ledestin> ndrst: you're welcome
mdedetrich has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
cheddar_bot has joined #ruby-lang
cheddar_bot has quit [Ping timeout: 240 seconds]
realDAB has quit [Quit: realDAB]
MaddinXx has joined #ruby-lang
beerdy has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
poga has quit [Ping timeout: 240 seconds]
yatish27 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
mbj has joined #ruby-lang
maxmanders has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
mbj has joined #ruby-lang
mbj has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maxmanders has quit [Ping timeout: 245 seconds]
realDAB has joined #ruby-lang
jxie has quit [Quit: leaving]
charliesome has joined #ruby-lang
joshuawscott has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
wmoxam has joined #ruby-lang
joshuawscott has quit [Ping timeout: 276 seconds]
cheddar_bot has joined #ruby-lang
pothibo has joined #ruby-lang
apeiros_ is now known as apeiros
yatish27_ has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 268 seconds]
wmoxam has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby-lang
skmp has joined #ruby-lang
io_syl has joined #ruby-lang
yatish27_ has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
nneko001__ has quit [Quit: Konversation terminated!]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
postmodern has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenn has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
ffio has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
yfeldblum has joined #ruby-lang
joshuawscott has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
joshuawscott has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
joshuawscott has joined #ruby-lang
akahn has quit [Quit: Connection closed for inactivity]
yxhuvud has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
beerdy has quit [Read error: Operation timed out]
cads has quit [Ping timeout: 264 seconds]
cirenyc has joined #ruby-lang
cirenyc has quit [Client Quit]
danilo2 has joined #ruby-lang
hashkey has joined #ruby-lang
IGRACH_ has joined #ruby-lang
skmp has quit [Quit: Leaving.]
danilo2 has quit [Client Quit]
IGRACH_ has quit [Client Quit]
manek has joined #ruby-lang
sreffotsirk has joined #ruby-lang
beerdy has joined #ruby-lang
manek has quit [Client Quit]
danilo2 has joined #ruby-lang
wmoxam has joined #ruby-lang
benlovell has joined #ruby-lang
pothibo has quit [Quit: pothibo]
hashkey_ has joined #ruby-lang
<danilo2> Hello! I'm new to Ruby and I'm a passionate about programing lanuages. I would love to learn more about the Ruby design details. I want to ask you some questions. The first is - in Ruby we have functions and variables. If you write a function name- it is equal to its execution, so writing "a+f" depends on what "a" and "f" is. If "f" is a function it is exeuted, if "a" is variable - its value is used, right?
hashkey has quit [Ping timeout: 248 seconds]
<waxjar> that's correct. expect in Ruby there are no functions, only methods :)
<danilo2> waxjar: I understand, all the global "functions" I write are methofds of correspnding "module" or something?
<waxjar> the top level is called main and is an Object, i believe. not too sure about that
<ledestin> waxjar: that's correct
<danilo2> Ok great :) But if methods and variables can be used in very simmilar way - while writing a code we do NOT know what is a method call and what is simple variable, do we? (without looking at the definitions). Additional if "f" can be both variable accessor and method call, is it possible to somehow add a "callable" method to var variable in such way, that if I write "a" (and "a" is a variable holding isntance of my custom class) it
<danilo2> I mean - if I write "x = new A" (I know that in Ruby probably there is no "new" keyword), than writing "a = x" will assign x to a, or is it possible to create a special method, that will tell ruby, that "class A is callable", so it will execute this method during the assigment?
<danilo2> I'm talking about something equivalent to pythons "__call__" method
realDAB has quit [Quit: realDAB]
ryez has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby-lang
<ledestin> don't understand
<waxjar> i'm not really sure what you mean, but you have to remember that everything in ruby is an Object. so wether f is a variable or a method call doesn't really matter, it'll return an object either way
<waxjar> there's no such thing as a callable
<danilo2> heh I'm sorry guys :) I'll try to explain that better :) I know everything is an object. But it is possible, that a class instance will behave LIKE a method? I mean - it IS possible to create method "def test \n puts "!!!"\n return 5\n end" and If i use it like (1+test) I'll get output in terminal. Is it possible to create class instance "a", which while using like "b=a" will print output to terminal?
<waxjar> you want something to be called when you assign an object to a variable?
mbj has joined #ruby-lang
mbj has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
<danilo2> waxjar: yeah - something like that :) when I assign "function" to variable (the function is called) - I want exactly the same behavior with instances of my custom class - is it possbile?
<waxjar> not that i know of
<danilo2> waxjar: Thank you, so I understand it is not possible to write class A, which can be "callable"? I mean if I create instance "a" of class "A", i cannot use it like "x = a 1, 2, 3" ?
wallerdev has joined #ruby-lang
<waxjar> no
ledestin has quit [Quit: ledestin]
<waxjar> because the instance of a would be an object. you send messages to objects (e.g. call methods: object.message argument), but not much else.
<danilo2> ok so in Ruby we can "call" only methods - it is not possible to write ANY object thatwill behave like a method? (I'm sorry for so detailed questions - this topic is very important to me)
<matled> danilo2: yeah, there are conventions, e.g. having a #call method on procs/method objects/...
<waxjar> ruby has procs, blocks and lambda's that are as close to functions as you can get in ruby
<matled> danilo2: so a = proc { return something }; a.call would probably be similar to the __call__ thing from python (but I don't know python)
<waxjar> they can be invoked with #call or #[] or like so: lambda.(..)
<matled> err, without the return
<danilo2> in Python if I create "class A: def __call__ (self): return 5" I can create its instance: "a = A()" and then call THIS INSTANCE: "b = a()" (which executes the __call__ method
<danilo2> matled: Ok, so we have to explicitly write ".call" to call it - it makes sense :)
<waxjar> in ruby you'd do b = a.call
mbj has joined #ruby-lang
<danilo2> ok, than you very much :)
benlovell has quit [Ping timeout: 248 seconds]
<waxjar> yw
Banistergalaxy has joined #ruby-lang
<danilo2> Ok last question - it could sound stupid but I'm trying rght now to compare ruby to hasell in my mind :) Is there a difference in ruby between a variable and a function, which returns a constant value? I mean - we use them in the same way (a+b) or (a+f) (where f is a function and b is a variable). Do they differ something when it comes to possible usages in Ruby?
wmoxam has quit [Ping timeout: 268 seconds]
<Harzilein> danilo2: i think a bit further back your message got truncated. if your client does not split messages maybe you should make sure to stop a bit earlier, so your ircuser, hostname etc. still fit into the message
shinnya has joined #ruby-lang
<danilo2> I'm using webchat.freenode.net
<danilo2> I'l split it maybe by hand
<danilo2> Ok last question - it could sound stupid but I'm trying rght now to compare ruby to hasell in my mind :)
<danilo2> Is there a difference in ruby between a variable and a function, which returns a constant value?
<waxjar> danilo2: ruby doesn't really have functions
<danilo2> I mean - we use them in the same way (a+b) or (a+f) (where f is a function and b is a variable). Do they differ something when it comes to possible usages in Ruby?
havenwood has joined #ruby-lang
<Harzilein> danilo2: i think truncation occured here: " is it possible to somehow add a "callable" method to var variable in
<Harzilein> class) it
<Harzilein> such way, that if I write "a" (and "a" is a variable holding isntance of my custom
<danilo2> waxjar: Of course - it has methods - sorry for the wrong word :)
<Harzilein> argh
<Harzilein> sorry, that should have been one line
<waxjar> it's not just a different, word. functions in haskell and methods in ruby are very different
<waxjar> haskell functions can return new functions, ruby methods can and will only return objects
<danilo2> waxjar: so its not possible in ruby to return a lambda from a function?
<waxjar> it is, a lambda is just an object (that you call #call on)
<waxjar> i think its useful to view them as two different concepts rather than variations of the same thing
<waxjar> functions are self-contained, methods are always bound to an object
<danilo2> waxjar: I see, in Ruby lambdas and methods are different concepts - that is very interesting :)
jerrytgarcia has joined #ruby-lang
<waxjar> methods on the top level may look like functions not bound to any object, but they're really methods bound to "main"
<danilo2> waxjar: ok :) and methods cannot return methods, only objects. That solves my question now :)
<danilo2> thank you :)
<waxjar> yw :)
sush24 has joined #ruby-lang
<mbj> p/QUIT
mbj has quit [Quit: leaving]
<spike|spiegel> danilo2: sorry, who says methods can't return methods?
<spike|spiegel> there are method objects (bound and unbound)
<danilo2> spike: Oh, so there are unbound methods in uby ?
<danilo2> *Ruby
<spike|spiegel> sure
<danilo2> spike: But I understand, that unbound method have to be bound before calling it ?
<spike|spiegel> yes
Criztian has joined #ruby-lang
<danilo2> but as I see, aftr binding an unbound method to an object we can call it like "m.call(args)"
<danilo2> and we cannot use the standard syntactic method sugar like "m args"
<waxjar> they're represented as objects, tho
<spike|spiegel> you need to bind, get the right scopes, after all it's a method and not a regular subroutine
tbuehlmann has quit [Remote host closed the connection]
<spike|spiegel> syntactic sugar is just what it is
<spike|spiegel> sugar.
<spike|spiegel> waxjar: so classes are also objects..
<danilo2> ok :) so unbound methods are objects, that have method "bound", which results a lambda - am I right?
<waxjar> true
pothibo has joined #ruby-lang
<waxjar> but you can't do functional programming a la haskell with Method objects
<yorickpeterse> wat
<waxjar> you cant do "a()" where a is a method that returns another method
<whitequark> that's mainly a syntactic difference
<danilo2> waxjar: yes, because I have to use a.call()
<waxjar> i don't think it is whitequark, you can make it work but the concepts are very different imo
ssb123 has joined #ruby-lang
hogeo has joined #ruby-lang
relix has joined #ruby-lang
beerdy has quit [Ping timeout: 248 seconds]
relix has quit [Client Quit]
ylluminate has quit [Quit: Bye!]
<whitequark> waxjar: it's just like a difference between a functional lang and a language with first-class objects
<whitequark> er, functions
hogeo_ has quit [Ping timeout: 248 seconds]
<whitequark> ruby is the latter but not the former, same here.
kyrylo has quit [Ping timeout: 268 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
benlovell has joined #ruby-lang
x0f_ has joined #ruby-lang
<waxjar> i don't disagree
<spike|spiegel> you have to implement pattern matching yourself, so meh
<whitequark> lack of pattern matching is sad, yeah :/
x0f has quit [Ping timeout: 276 seconds]
maxmanders has joined #ruby-lang
<whitequark> on the very end of my backlog of things potentially to do is a macro for ruby which would provide pattern matching
joshuawscott has quit [Quit: Leaving.]
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
thebastl has quit [Quit: Ex-Chat]
tkuchiki has joined #ruby-lang
elia has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
fedesilva has joined #ruby-lang
tkuchiki has quit [Ping timeout: 256 seconds]
fedesilv_ has quit [Ping timeout: 248 seconds]
nathanstitt has joined #ruby-lang
ssb123 has joined #ruby-lang
sush24 has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 276 seconds]
benlovell has quit [Quit: leaving]
sush24 has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
vlad_starkov has joined #ruby-lang
wmoxam has joined #ruby-lang
hashkey_ is now known as hashkey
wallerdev has joined #ruby-lang
joshuawscott has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Client Quit]
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 268 seconds]
enebo has joined #ruby-lang
facerip has joined #ruby-lang
enebo has quit [Client Quit]
arooni-mobile has joined #ruby-lang
dingus_khan has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 264 seconds]
Johz has joined #ruby-lang
setmeaway has joined #ruby-lang
Johz has quit [Quit: Leaving]
jxie has joined #ruby-lang
sascha_d has quit [Quit: bai]
esad has joined #ruby-lang
mucker has joined #ruby-lang
sascha_d has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
ssb123 has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
Johz has joined #ruby-lang
nneko001__ has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
elia has quit [Ping timeout: 276 seconds]
mucker has quit [Quit: leaving]
mucker has joined #ruby-lang
skmp has joined #ruby-lang
VTLob has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
sreffotsirk has quit [Quit: ❤]
Nisstyre-laptop has joined #ruby-lang
sascha_d has quit [Quit: bai]
Nisstyre-laptop is now known as Nisstyre
sascha_d has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bizarrosandwich has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
facerip_ has joined #ruby-lang
facerip has quit [Ping timeout: 240 seconds]
facerip_ is now known as facerip
<danilo2> Could somebody explain to me - if everythin in Ruby is an object (method is an object, my custom instance is an object also) why I can use syntax (f 1,2,3) with methds, but not with objects? Is this syntax allowed only for methods or there is a hidden logic?
<whitequark> what would you expect it to do for objects ?
<apeiros> danilo2: while a method is an object, in `x.foo()`, the `foo()` is not an object
<danilo2> apeiros: could you tell more please?
<apeiros> I wouldn't know what
<apeiros> also, what whitequark said
codelurker has joined #ruby-lang
codelurker has quit [Read error: Connection reset by peer]
<danilo2> apeiros: method is an object "in x.foo()", the "foo()" is not an object - then what is "foo"?
<apeiros> it's syntax, instructing ruby to invoke (call) the method named 'foo' on the object referenced by x
bzalasky has joined #ruby-lang
<danilo2> whitequark: I do not expect anythink - I'm simply looking for reason why this syntax is allowed in some places while it is dissalowed in other. I mean - why we can write f 1,2,3 and we cannot write the same with lambdas
<whitequark> what do you want to write with lambdas?
<whitequark> show an example
<yorickpeterse> I think I understand why some people like C
<yorickpeterse> it lets them feel incredibly smug for doing boring shit like re-inventing resizable arrays of arbitrary values
<yorickpeterse> (me included)
mucker_ has joined #ruby-lang
mucker_ has quit [Client Quit]
bizarrosandwich has quit [Read error: Connection reset by peer]
<whitequark> yes.
<matled> yorickpeterse: yeah, for some things it seems easier to reimplement or copy+adapt than using a library in C. so you get to think about, or even solve, all those simple fun problems yourself :)
<yorickpeterse> Having said that, I *was* lazy and just used uthash instead of doing a hash myself
<yorickpeterse> because fuck that
<apeiros> and every new implementation comes with its own reinvention of all the one-offs and other errors all previous implementations made…
<yorickpeterse> yup
<yorickpeterse> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1167019 in unrelated news, fuck this bug
<yorickpeterse> because of course I get a new router and that one affects me
wallerdev has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
a7d7p has joined #ruby-lang
jsullivandigs has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
xyz has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 264 seconds]
mucker has quit [Quit: leaving]
rickruby has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
pkrnj has joined #ruby-lang
momomomomo has joined #ruby-lang
vlad_starkov has joined #ruby-lang
VTLob has quit [Quit: VTLob]
<ddfreyne> dominikh: Poke. Is yard-kramdown mature?
<ddfreyne> I'd like to use it, but ther eis only one commit...
<dominikh> ddfreyne: it's mature
<dominikh> ddfreyne: runs in rubydoc.org and renders all my docs fine :)
<dominikh> ddfreyne: if you look at the only ruby file in there, it's really simple :)
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cheddar_bot has quit [Remote host closed the connection]
bizarrosandwich has joined #ruby-lang
<zzak> hi
mistym has joined #ruby-lang
benanne has quit [Quit: kbai]
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
<ddfreyne> dominikh: Ok
<ddfreyne> Question: Do people still use Gem::Specification#add_development_dependency? I feel like moving that to my Gemfile entirely.
<dominikh> ddfreyne: oh, and: you only need yard-kramdown if you want to have .kmd or # @markup kramdown – you can already use kramdown as the default provider for the entire project by passing some flag to yardoc
thepumpkin has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
<ddfreyne> dominikh: Doh, I'm actually using kramdown already. Not sure why I had rdiscount in my dependencies then
<dominikh> :D
sjltaylor has joined #ruby-lang
<ddfreyne> Ugh, Bundler is weird. There is no way to tell it to install only one group?
<whitequark> don't think so
<yxhuvud> you can tell it not to install certain groups.
<yxhuvud> that config can also be put in config file.
danilo2 has quit [Ping timeout: 250 seconds]
<yxhuvud> note that it will still hit rubygems for everything unless the lock file is there and all requirements are fulfilled for each gem that should be installed.
arooni-mobile has joined #ruby-lang
<ddfreyne> gits
<ddfreyne> Oops
ffio has quit [Ping timeout: 240 seconds]
ffio_ has joined #ruby-lang
sush24 has quit [Ping timeout: 256 seconds]
amerine has joined #ruby-lang
pkrnj has quit [Ping timeout: 264 seconds]
ssb123 has joined #ruby-lang
kurko_ has joined #ruby-lang
skmp has quit [Quit: Leaving.]
workmad3 has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
kyrylo has joined #ruby-lang
arBmind has joined #ruby-lang
benanne has joined #ruby-lang
MaddinXx has quit [Read error: Connection reset by peer]
MaddinXx has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
ssb123 has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
ssb123 has joined #ruby-lang
cheddar_bot has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
ssb123 has joined #ruby-lang
cheddar_bot has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
wmoxam has quit [Ping timeout: 260 seconds]
jonahR has joined #ruby-lang
havenwood has quit [Ping timeout: 260 seconds]
lfox has joined #ruby-lang
relix has joined #ruby-lang
ffio_ has quit [Quit: WeeChat 0.4.1]
MaddinXx has quit [Remote host closed the connection]
setmeaway has quit [Read error: Connection reset by peer]
setmeaway2 has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sjltaylor has joined #ruby-lang
ssb123 has quit [Read error: Connection reset by peer]
ssb123 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
joshuawscott has joined #ruby-lang
mistym has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
mistym has quit [Ping timeout: 264 seconds]
bizarrosandwich has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
bizarrosandwich has joined #ruby-lang
sstrickl has joined #ruby-lang
thepumpkin has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Ping timeout: 264 seconds]
cheddar_bot has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
cheddar_bot has quit [Ping timeout: 248 seconds]
VTLob has joined #ruby-lang
a7d7p has quit [Quit: a7d7p]
elia has joined #ruby-lang
hogeo_ has joined #ruby-lang
supki_ is now known as supki
hogeo has quit [Ping timeout: 268 seconds]
bizarrosandwich has quit [Ping timeout: 256 seconds]
Criztian has quit [Remote host closed the connection]
bizarrosandwich has joined #ruby-lang
kyrylo has quit [Ping timeout: 246 seconds]
joshuawscott has quit [Quit: Leaving.]
jsullivandigs has joined #ruby-lang
mbj has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 276 seconds]
elia has quit [Quit: Computer has gone to sleep.]
kurko_ has joined #ruby-lang
cheddar_bot has joined #ruby-lang
roadt_ has quit [Ping timeout: 264 seconds]
ssb123 has quit [Remote host closed the connection]
cheddar_bot has quit [Ping timeout: 246 seconds]
ssb123 has joined #ruby-lang
joshuawscott has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
mbj has quit [Read error: Connection reset by peer]
sascha_d has quit [Quit: obai]
cads has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
Johz has quit [Ping timeout: 240 seconds]
xyz has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0/20130806211916]]
VTLob has quit [Quit: VTLob]
maxmanders has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby-lang
fenicks has joined #ruby-lang
ledestin has joined #ruby-lang
hahuang65_ has joined #ruby-lang
joshuawscott has left #ruby-lang [#ruby-lang]
raphaelivan has joined #ruby-lang
maxmanders has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby-lang
raphaelivan has left #ruby-lang [#ruby-lang]
maxmanders has joined #ruby-lang
fooqri has joined #ruby-lang
ssb123_ has joined #ruby-lang
lsegal has joined #ruby-lang
jsullivandigs has joined #ruby-lang
fooqri has quit [Quit: fooqri]
geopet has joined #ruby-lang
hahuang65_ has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby-lang
havenwood has joined #ruby-lang
cheddar_bot has joined #ruby-lang
bizarrosandwich has quit [Read error: Connection reset by peer]
bzb has joined #ruby-lang
wmoxam has joined #ruby-lang
cheddar_bot has quit [Ping timeout: 264 seconds]
JoshuaPaling has joined #ruby-lang
a7d7p has joined #ruby-lang
sascha_d has joined #ruby-lang
idkazuma has joined #ruby-lang
charliesome has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
segy has quit [Ping timeout: 240 seconds]
joshuawscott has joined #ruby-lang
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 276 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
maxmanders has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joshuawscott has quit [Quit: Leaving.]
<zenspider> 3300 line diff and growing... ugh
pkrnj has joined #ruby-lang
wallerdev has joined #ruby-lang
benanne has quit [Quit: kbai]
a7d7p has quit [Quit: a7d7p]
jperry_ has joined #ruby-lang
charliesome has joined #ruby-lang
nneko001__ has quit [Ping timeout: 264 seconds]
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bungoman has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
cheddar_bot has joined #ruby-lang
cheddar_bot has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
bungoman has quit [Remote host closed the connection]
ruby-lang667 has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
ruby-lang667 has left #ruby-lang [#ruby-lang]
jsullivandigs has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jsullivandigs has quit [Read error: Connection reset by peer]
hogeo_ has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
geopet has quit [Quit: geopet]
diegoviola has joined #ruby-lang
charliesome has joined #ruby-lang
esad has joined #ruby-lang
jsullivandigs has joined #ruby-lang
yfeldblum has joined #ruby-lang
joshuawscott has joined #ruby-lang
nazty has joined #ruby-lang
segy has joined #ruby-lang
nazty has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 268 seconds]
a7d7p has joined #ruby-lang
nazty has joined #ruby-lang
jerrytgarcia has quit [Ping timeout: 240 seconds]