apeiros_ changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
<zenspider> return data.keys, data.values OR return data.to_a.transpose
<ari-_-e> won't somebody please think of the implicit returns!
frobrob has joined #ruby-lang
ddv has quit [Ping timeout: 245 seconds]
ddv has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
nathanstitt has quit [Quit: I growing sleepy]
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby-lang
x0f has quit [Ping timeout: 255 seconds]
shinnya has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
frobrob has quit [Ping timeout: 245 seconds]
shinnya has joined #ruby-lang
<zenspider> if he wasn't a complete newb, maybe
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
<ari-_-e> WON'T SOMEBODY THINK OF THE NEWBS
shinnya has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
doitjay has quit [Quit: Leaving]
x0f has quit [Ping timeout: 240 seconds]
ta has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
sepp2k has quit [Read error: Connection reset by peer]
x0f has joined #ruby-lang
yugui_zzz is now known as yugui
rue has joined #ruby-lang
yubrew has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
x0f has quit [Ping timeout: 265 seconds]
x0f has joined #ruby-lang
frzng has quit [Quit: frzng]
ur5us has joined #ruby-lang
ur5us has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mykoweb has joined #ruby-lang
Burgestrand has quit [Quit: Burgestrand]
yugui is now known as yugui_zzz
centrx has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
centrx has quit [Client Quit]
lianj has quit [Ping timeout: 252 seconds]
floyd2_ has quit [Ping timeout: 252 seconds]
mykoweb has quit [Ping timeout: 255 seconds]
lianj has joined #ruby-lang
floyd2 has joined #ruby-lang
diegoviola has joined #ruby-lang
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
diegoviola has quit [Changing host]
diegoviola has joined #ruby-lang
yubrew has joined #ruby-lang
jxie_ has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
taylorrf has joined #ruby-lang
x0f has joined #ruby-lang
jxie has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
dexter_ has joined #ruby-lang
Miphix has joined #ruby-lang
arBmind has joined #ruby-lang
toastynerd has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
dingus_khan has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
arBmind has quit [Quit: Leaving.]
gix has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
charliesome has joined #ruby-lang
alexju has joined #ruby-lang
nathanstitt has joined #ruby-lang
x0f has quit [Ping timeout: 265 seconds]
x0f has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
toastynerd has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
diegoviola has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
x0f has quit [Ping timeout: 255 seconds]
yugui_zzz is now known as yugui
x0f has joined #ruby-lang
yugui is now known as yugui_zzz
yubrew has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby-lang
dingus_khan has joined #ruby-lang
dexter_ has quit [Ping timeout: 245 seconds]
taylorrf has quit []
stayarrr has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
x0f has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
x0f has quit [Ping timeout: 265 seconds]
x0f has joined #ruby-lang
doitjay has joined #ruby-lang
jxie has joined #ruby-lang
x0f has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x0f has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
doitjay has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby-lang
yubrew has joined #ruby-lang
toastynerd has joined #ruby-lang
yubrew has quit [Ping timeout: 260 seconds]
toastynerd has quit [Ping timeout: 260 seconds]
dexter_ has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
lsegal` has joined #ruby-lang
lsegal has quit [Write error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
x0f has joined #ruby-lang
sheperson has joined #ruby-lang
sheperson has quit [Client Quit]
lolmaus has quit [Excess Flood]
PSU_Boss has quit [Excess Flood]
lolmaus has joined #ruby-lang
PSU_Boss has joined #ruby-lang
PSU_Boss has joined #ruby-lang
PSU_Boss has quit [Changing host]
diegoviola has joined #ruby-lang
toastynerd has joined #ruby-lang
yugui_zzz is now known as yugui
toastynerd has quit [Remote host closed the connection]
noob101 has joined #ruby-lang
<noob101> Hello. I am new to this channel.
starbucks has quit [Read error: Connection reset by peer]
yubrew has joined #ruby-lang
starbucks has joined #ruby-lang
dexter_ has quit [Ping timeout: 255 seconds]
yubrew has quit [Ping timeout: 240 seconds]
closer has quit [Ping timeout: 245 seconds]
yugui is now known as yugui_zzz
yugui_zzz is now known as yugui
yugui is now known as yugui_zzz
closer has joined #ruby-lang
alexju has quit [Remote host closed the connection]
starbucks has quit [Remote host closed the connection]
yugui_zzz is now known as yugui
dexter_ has joined #ruby-lang
wallerdev has joined #ruby-lang
<Senjai> noob101: hi
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
_JokerDoom has quit [Read error: Connection reset by peer]
alexju has joined #ruby-lang
JokerDoom has joined #ruby-lang
pixelhandler has joined #ruby-lang
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
sheperson has joined #ruby-lang
yugui is now known as yugui_zzz
yubrew has joined #ruby-lang
pixelhandler has left #ruby-lang [#ruby-lang]
<noob101> Senjai: Hello
yubrew has quit [Ping timeout: 255 seconds]
<zenspider> well that's exciting
toastynerd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yugui_zzz is now known as yugui
yugui is now known as yugui_zzz
yugui_zzz is now known as yugui
tbuehlmann has joined #ruby-lang
yugui is now known as yugui_zzz
dexter_ has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
dexter_ has joined #ruby-lang
_ht has joined #ruby-lang
mistym has joined #ruby-lang
yubrew has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
dexter_ has quit [Ping timeout: 240 seconds]
GaelanAintAround has quit [Ping timeout: 276 seconds]
yubrew has quit [Ping timeout: 240 seconds]
zz_dlu has quit [Ping timeout: 260 seconds]
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
relix has joined #ruby-lang
toastynerd has quit []
dexter_ has joined #ruby-lang
Raycaster has joined #ruby-lang
Raycaster has quit [Client Quit]
phansch has joined #ruby-lang
symm- has quit [Ping timeout: 260 seconds]
dexter_ has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
yatish27 has joined #ruby-lang
yubrew has joined #ruby-lang
ur5us has joined #ruby-lang
djbkd has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 264 seconds]
djbkd has quit [Ping timeout: 252 seconds]
BucOder has joined #ruby-lang
mistym has quit [Remote host closed the connection]
rippa has joined #ruby-lang
mistym has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
alexju has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
sarkyniin has joined #ruby-lang
tylersmith has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
Atttwww has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
sheperson has quit [Read error: No route to host]
djbkd has quit [Ping timeout: 252 seconds]
BucOder has quit [Quit: Computer has gone to sleep.]
x0f has quit [Ping timeout: 265 seconds]
x0f has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ledestin has quit [Quit: ledestin]
yatish27 has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
stamina has joined #ruby-lang
yatish27 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
frosgy has joined #ruby-lang
yubrew has joined #ruby-lang
mistym has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
frogssgy has quit [Ping timeout: 240 seconds]
junkmechanic_ has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby-lang
jhass|off is now known as jhass
VTLob has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sheperson has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
lsegal` has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
djbkd has quit [Ping timeout: 264 seconds]
sheperson has quit [Ping timeout: 260 seconds]
sheperson has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
stamina has quit [Ping timeout: 252 seconds]
sheperson has quit [Ping timeout: 252 seconds]
sheperson has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
cnivolle has joined #ruby-lang
djbkd has joined #ruby-lang
frzng has joined #ruby-lang
djbkd has quit [Ping timeout: 276 seconds]
stamina has joined #ruby-lang
arBmind has joined #ruby-lang
yubrew has joined #ruby-lang
sepp2k has joined #ruby-lang
GBrawl has joined #ruby-lang
BucOder has joined #ruby-lang
yubrew has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 260 seconds]
x0f has joined #ruby-lang
ikrima has joined #ruby-lang
havenwood has quit [Ping timeout: 272 seconds]
shinnya has quit [Ping timeout: 252 seconds]
matp has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby-lang
x0f has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
banister has joined #ruby-lang
matp has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.3]
havenwood has joined #ruby-lang
frzng has quit [Quit: frzng]
stamina has quit [Ping timeout: 252 seconds]
cnivolle has quit []
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
thomasxie has joined #ruby-lang
mehlah has joined #ruby-lang
nofxx has joined #ruby-lang
Cakey has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Remote host closed the connection]
Miphix has joined #ruby-lang
stamina has joined #ruby-lang
Miphix has quit [Quit: Leaving]
yubrew has joined #ruby-lang
sheperson has quit [Ping timeout: 252 seconds]
sheperson has joined #ruby-lang
yubrew has quit [Ping timeout: 276 seconds]
frzng has joined #ruby-lang
Miphix has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
sheperson has quit [Ping timeout: 255 seconds]
sheperson has joined #ruby-lang
sheperson has quit [Client Quit]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
GBrawl has quit [Quit: Computer has gone to sleep.]
BucOder has quit [Quit: Computer has gone to sleep.]
devgiant has joined #ruby-lang
lds has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
GBrawl has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
junkmechanic_ has joined #ruby-lang
BucOder has joined #ruby-lang
thomasxie has joined #ruby-lang
yubrew has joined #ruby-lang
devgiant has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 252 seconds]
x0f has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
nofxx has quit [Ping timeout: 245 seconds]
x0f has joined #ruby-lang
bahar has joined #ruby-lang
bahar has quit [Changing host]
bahar has joined #ruby-lang
Rickmasta has quit [Ping timeout: 276 seconds]
Miphix has quit [Quit: Leaving]
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
wm3|away has joined #ruby-lang
Miphix has joined #ruby-lang
GBrawl_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
Rickmasta has joined #ruby-lang
nofxx has joined #ruby-lang
Miphix has quit [Client Quit]
chris123456789 has joined #ruby-lang
GBrawl has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
momomomomo has joined #ruby-lang
thomasxie has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
ari-_-e has quit [Ping timeout: 252 seconds]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
ari-_-e has joined #ruby-lang
frzng has quit [Quit: frzng]
Miphix has joined #ruby-lang
yatish27 has quit [Ping timeout: 252 seconds]
yatish27 has joined #ruby-lang
djbkd has joined #ruby-lang
djbkd has quit [Ping timeout: 240 seconds]
frzng has joined #ruby-lang
yubrew has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
BucOder has quit [Quit: Computer has gone to sleep.]
nertzy has joined #ruby-lang
chris123456789 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gjaldon has joined #ruby-lang
<gjaldon> hi there. does anyone here have an idea on what's a good os project to read and maybe contribute to to learn about socket programming?
olivererxleben has joined #ruby-lang
yatish27 has joined #ruby-lang
stayarrr has quit [Ping timeout: 276 seconds]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yatish27_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
wm3|away has quit [Ping timeout: 265 seconds]
yatish27 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 252 seconds]
frzng has quit [Quit: frzng]
mikecmpbll has joined #ruby-lang
starbucks has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 265 seconds]
benlovell has joined #ruby-lang
gjaldon has quit []
doitjay has joined #ruby-lang
roelof has joined #ruby-lang
<roelof> any news on the ruby talk ML . the spam seems to be stopped
yubrew has joined #ruby-lang
<roelof> and how can I do this more the ruby way : http://pastebin.com/BqAVn8bh
djbkd has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yubrew has quit [Ping timeout: 255 seconds]
<havenwood> roelof: `('a'..'z').each do |letter|` or `'a'.upto('z') do |letter|`
<roelof> havenwood: oke, and the if then is good or can I better make a ternary of it ?
djbkd has quit [Ping timeout: 252 seconds]
yatish27_ has quit [Remote host closed the connection]
<roelof> havenwood: I have now this : http://pastebin.com/2dWszPyv but I get a syntax error
yatish27 has joined #ruby-lang
<havenwood> roelof: block arg needs starting and ending pipe `|letter|`
yatish27 has quit [Read error: Connection reset by peer]
yatish27_ has joined #ruby-lang
<roelof> havenwood: then I see this error : http://pastebin.com/vv1mnd99 :(
<havenwood> roelof: you really want to have `answer` be a String full of 1s and 0s? no need to downcase `letter` since you know it's already downcased
<havenwood> oh, you actually do, heh
<havenwood> roelof: you can write `answer += "1"` instead of `answer = answer + "1"`
<roelof> havenwood: I did change it but still got this annoying error message
<havenwood> >> a = 'coffee'; 'a'.upto('z').map { |letter| a.downcase.include?(letter) ? '1' : '0' }.join
<eval-in_> havenwood => "00101100000000100000000000" (https://eval.in/157553)
<havenwood> roelof: looks like that ^ gives expected output
<roelof> that one passes also here It seems there is a difference between map and each
<havenwood> roelof: i just used #map instead of assigning a variable to a String and then populating the String while iterating with #each
<roelof> oke, in the first you used each to iterate and it fails here.
<roelof> havenwood: sometimes ruby is wierd
<havenwood> roelof: instead of `alphabet = ''; ('a'..'z').each { |char| alphabet << char.something }; alphabet` you can `('a'..'z').map { |char| char.something }.join`
<havenwood> roelof: #map is good to learn and use! http://www.ruby-doc.org/core-2.1.2/Enumerable.html#method-i-map
<roelof> thanks, I still have to figure out when to use each and when to use map
yfeldblum has joined #ruby-lang
<roelof> As a beginner I found this confusing
yfeldblum has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
lds has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has quit [Ping timeout: 276 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
xcesariox has joined #ruby-lang
<Spaceghostc2c> roelof: #each is for doing something to something enumberable, most often it returns the last thing evaluated in the loop. map is for returning a collection of the last things evaluated in the same kind of loop as seen in #each.
Johz has joined #ruby-lang
<roelof> Spaceghostc2c: thanks for the explanation
ascarter has joined #ruby-lang
<roelof> another question : if I have two time instances and I want to know the difference why can I do end_time - begin_time ?
<roelof> According to the time manual it schould be possible
havenwood has quit [Ping timeout: 272 seconds]
havenn has joined #ruby-lang
<roelof> it good. I tried another time and it works.
roelof has quit [Quit: Page closed]
doitjay has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Atttwww has joined #ruby-lang
mustmodify has joined #ruby-lang
mykoweb has joined #ruby-lang
<mustmodify> I'm implementing a middleware stack based on Rack. I'm struggling with a yield-context issue. I'm boiled my problem down to this gist... can someone explain to me why the context inside the 'middleware' block on lines 31 to 33 is X.new rather than MiddlewareBuilder.new? https://gist.github.com/mustmodify/49de9eebec34e85e7720
<jhass> because a blocks scope is defined by where it's defined, not where it's executed
<jhass> if you want to change the scope a block is executed in, pass it to instance_exec/instance_eval/class_eval
<Spaceghostc2c> Well, I think you can also change the binding, yeah?
<mustmodify> so if I want a DSL, I have to use something like middleware do |builder| ?
<jhass> yielding builder is one approach, instance_eval'ing the block is another
<jhass> I've seen both almost equally in the wild, maybe a slight tendency towards yielding self
<mustmodify> jhass: Hm... I hadn't seen instance_exec before. I think I prefer not to pass in a builder... not sure why but it seems cleaner. Though actually I guess it might be really confusing to a new dev.
<mustmodify> But then this whole thing would baffle a new dev, so that may be moot.
yfeldblum has joined #ruby-lang
<Spaceghostc2c> jhass: I've also seen changing the actual binding.
<mustmodify> Spaceghostc2c: tell me about that.
<jhass> changing the binding is only useful if you have no direct access to the target scope
<jhass> (which you do)
<Spaceghostc2c> jhass: I mean, we are talking about some fun tools to do some good metabrogramming.
yfeldblum has quit [Ping timeout: 240 seconds]
yatish27_ has quit [Remote host closed the connection]
<mustmodify> jhass: ok, NOW tell me why it isn't working. :) class MiddlewareBuilder def use( middleware, *args ) middleware_stack << lambda {|next_app| middleware.new( next_app, *args ) } end def middleware_stack @use ||= [] end end class Interface def self.middleware MiddlewareBuilder.new.instance_eval( yield ) end end class X < Interface middleware do use( lambda {} ) end end
<mustmodify> blah
<mustmodify> sorry
yatish27 has joined #ruby-lang
<jhass> because that's not how you use instance_eval
<mustmodify> oh well uh ...
frzng has joined #ruby-lang
<mustmodify> I guess that's a good reason.
sleepee has joined #ruby-lang
<jhass> def self.middleware(&block); MiddlewareBuilder.new.instance_eval(&block); end;
<mustmodify> oh
<jhass> or ... MiddlewareBuilder.new(&block) ... def initialize(&block); instance_eval(&block); end;
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
<mustmodify> Hm... I always thought using &block.call and yield were basically the same.
<mustmodify> But I see that it works the way you suggest.
<mustmodify> jhass: thanks very much.
<jhass> &block in a method definition captures the implicit block argument and converts it into a Proc object
<jhass> &block in a method call converts a Proc object to a block and passes it to the method
yatish27 has quit [Ping timeout: 260 seconds]
mykoweb has quit [Ping timeout: 276 seconds]
starbucks has quit [Remote host closed the connection]
symm- has joined #ruby-lang
<mustmodify> jhass: ok I see that it works the way you suggest. I'm curious though... I've updated my gist. Why doesn't it work now? Interface doesn't even get a look at &block, it gets passed through, and yet the context is still wrong.
<mustmodify> jhass: more for my own understanding than anything. I'm using what you suggested in my code.
<jhass> because yield doesn't change the context of the block
<mustmodify> Ah, so the block comes packaged with its context?
<jhass> yes
<mustmodify> ie it's not _just_ the code. It's the code and its original context.
<jhass> yes
houhoulis has joined #ruby-lang
<mustmodify> ok one final question, this one is easy. This app will receive messages from various medical labs. The middleware will do preprocessing... journalize, changing some bits of the message, etc. What pattern is that? Service or Strategy? Or something else?
yubrew has joined #ruby-lang
<mustmodify> I put it under app/strategies and as long as I'm consistent I realize it doesn't matter. But I just thought it would be nice to get another opinion. :)
konr_ has quit [Quit: Connection closed for inactivity]
doitjay has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
yubrew has quit [Ping timeout: 276 seconds]
wm3|away has joined #ruby-lang
<Spaceghostc2c> mustmodify: Will there be more than one strategies in use with the same collaborators?
<Spaceghostc2c> Otherwise, I'd aim for a service. It's a nice general pattern for encapsulating some kind of verby behaviour.
nofxx has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
phansch has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
BucOder has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
wm3|away has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby-lang
marr has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
lewix has joined #ruby-lang
BucOder has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 260 seconds]
BucOder has joined #ruby-lang
yfeldblum has joined #ruby-lang
lewix has quit [Remote host closed the connection]
GBrawl_ has quit [Quit: Lingo - http://lingoirc.com]
GBrawl has joined #ruby-lang
wallerdev has joined #ruby-lang
danijoo has joined #ruby-lang
lewix has joined #ruby-lang
lewix has quit [Client Quit]
lewix has joined #ruby-lang
lewix has quit [Changing host]
lewix has joined #ruby-lang
yubrew has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
mykoweb has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mistym has joined #ruby-lang
chris123456789 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sleepee has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
relix has joined #ruby-lang
<mustmodify> jhass, Spaceghostc2c: well thanks again, that was a big help.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doitjay has quit [Quit: Leaving]
_ht has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
starbucks has joined #ruby-lang
symm- has quit [Ping timeout: 265 seconds]
chris123456789 has quit [Quit: Textual IRC Client: www.textualapp.com]
olivererxleben has quit [Quit: Leaving...]
starbucks has quit [Quit: Leaving...]
<noob101> Hello.
amclain has joined #ruby-lang
charliesome has joined #ruby-lang
wm3|away has joined #ruby-lang
Cakey has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
aef has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 260 seconds]
starbucks has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 255 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
wm3|away has quit [Ping timeout: 252 seconds]
heftig has quit [Quit: Quitting]
darkswordchris has joined #ruby-lang
<darkswordchris> Hello. I am using ruby 1.8.7 and when I attempt to include ruby.h in c++, I get the error "syntax error : missing ';' before identifier 'pipe_exec'" on the line "extern rb_pid_t pipe_exec(const char *, int, FILE **, FILE **);"
<jhass> ruby 1.8.7 is out of support, please update
<darkswordchris> Ok, I also have 2.0.0, it gives the same error.
dingus_khan has joined #ruby-lang
<darkswordchris> No one knows?
dingus_khan has quit [Remote host closed the connection]
nitr has joined #ruby-lang
<dvorak> did you put extern "C" { } around the include?
nitr has quit [Client Quit]
nitr has joined #ruby-lang
heftig has joined #ruby-lang
nitr has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 252 seconds]
<darkswordchris> Sorry, was away. I did not dvorak
x0f has joined #ruby-lang
<darkswordchris> no difference
<darkswordchris> If I go to the line and hover over it, it tells me pid_t is undefined
tylersmith has joined #ruby-lang
nitr_ has joined #ruby-lang
vikfroberg has joined #ruby-lang
skade has joined #ruby-lang
GBrawl has quit [Quit: Lingo - http://lingoirc.com]
taylorrf has joined #ruby-lang
vikfroberg has left #ruby-lang [#ruby-lang]
stayarrr has joined #ruby-lang
nitr_ is now known as Nitr_
<darkswordchris> in my config.h, I have #define rb_pid_t pid_t, but pid_t is undefined.
VTLob has quit [Quit: VTLob]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
vikfroberg has joined #ruby-lang
Nitr_ is now known as Nitr
vikfroberg has left #ruby-lang [#ruby-lang]
cored_ has joined #ruby-lang
lsegal has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
Nitr has quit []
Nitr has joined #ruby-lang
cored has joined #ruby-lang
cored_ has quit [Ping timeout: 260 seconds]
cored has quit [Changing host]
cored has joined #ruby-lang
Nitr is now known as Nitr_
yubrew has joined #ruby-lang
Nitr_ is now known as nitr_aka_anty
yubrew has quit [Ping timeout: 240 seconds]
arooni-mobile has joined #ruby-lang
Johz has quit [Ping timeout: 265 seconds]
BucOder has quit [Quit: Computer has gone to sleep.]
mykoweb has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
frogssgy has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
apeiros has joined #ruby-lang
symm- has joined #ruby-lang
mykoweb_ has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
frosgy has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby-lang
mykoweb has quit [Ping timeout: 252 seconds]
mykoweb_ has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
benlovell has joined #ruby-lang
stayarrr has quit [Quit: Leaving...]
stayarrr has joined #ruby-lang
mykoweb_ has joined #ruby-lang
mykoweb has quit [Read error: Connection reset by peer]
mykoweb_ has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
mykoweb has quit [Read error: Connection reset by peer]
mykoweb has joined #ruby-lang
stayarrr has quit [Ping timeout: 245 seconds]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
mykoweb has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 240 seconds]
cstrahan has joined #ruby-lang
mykoweb has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has quit [Remote host closed the connection]
tylersmi_ has joined #ruby-lang
tylersmith has quit [Ping timeout: 240 seconds]
x0f has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.3]
mykoweb has quit [Ping timeout: 255 seconds]
doitjay has joined #ruby-lang
shinnya has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
mykoweb has joined #ruby-lang
x0f has joined #ruby-lang
benlovell has quit [Quit: leaving]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
mykoweb has quit [Ping timeout: 276 seconds]
dik_dak has joined #ruby-lang
mykoweb has joined #ruby-lang
mykoweb_ has joined #ruby-lang
AncientAmateur has joined #ruby-lang
mykoweb_ has quit [Read error: Connection reset by peer]
nitr_aka_anty has quit [Remote host closed the connection]
nitr_aka_anty has joined #ruby-lang
mykoweb has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
rickyrickyrice has joined #ruby-lang
nitr_aka_anty has quit [Ping timeout: 252 seconds]
apeiros has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
rickyrickyrice has quit [Client Quit]
jhass is now known as jhass|off
Olipro has quit [*.net *.split]
yfeldblum has joined #ruby-lang
starbuck_ has joined #ruby-lang
Olipro has joined #ruby-lang
starbucks has quit [Ping timeout: 240 seconds]
banister has joined #ruby-lang
zastern has quit [Ping timeout: 252 seconds]
starbuck_ has quit [Remote host closed the connection]
zastern has joined #ruby-lang
starbucks has joined #ruby-lang
yubrew has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
doitjay has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 260 seconds]
JokerDoom has quit [Ping timeout: 252 seconds]
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
x0f has quit [Ping timeout: 252 seconds]
cstrahan has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
starbucks has quit [Remote host closed the connection]
havenn is now known as havenwood
zenojis has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
zenojis has joined #ruby-lang
diegoviola has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
cstrahan has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 264 seconds]
miqui has joined #ruby-lang
x0f has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
rue has quit [Remote host closed the connection]
danijoo has joined #ruby-lang
starbucks has joined #ruby-lang