apeiros changed the topic of #ruby-lang to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste code on https://gist.github.com
semperfried76 has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
semperfried76 has quit [Read error: Connection reset by peer]
sp4rrow has joined #ruby-lang
semperfried76 has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
hahuang65 has quit [Ping timeout: 250 seconds]
marr has quit [Ping timeout: 248 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
makepkgnotwar has joined #ruby-lang
makepkgnotwar has quit [Max SendQ exceeded]
charliesome has joined #ruby-lang
makepkgnotwar has joined #ruby-lang
gwendall has joined #ruby-lang
makepkgnotwar has quit [Client Quit]
rgb-one has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
AlexAltea has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
sarahdashdashp has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
iliketur_ has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
mcclurmc has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
sarahdashdashp has quit [Quit: sarahdashdashp]
jefus__ is now known as jefus
wallerdev has quit [Ping timeout: 245 seconds]
the_real_intinig has joined #ruby-lang
the_real_intinig has quit [Remote host closed the connection]
fujimura has quit [Remote host closed the connection]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Swappticon has joined #ruby-lang
djbkd has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 246 seconds]
fujimura has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
fujimura has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
fujimura has joined #ruby-lang
car has quit [Ping timeout: 245 seconds]
nedp has joined #ruby-lang
nedp has quit [Client Quit]
nedp has joined #ruby-lang
chouhoulis has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
ur5us has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
_br_ has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby-lang
sankaber has joined #ruby-lang
fujimura has quit [Read error: No route to host]
fujimura has joined #ruby-lang
loincloth has joined #ruby-lang
iliketurtles has joined #ruby-lang
rgb-one has quit [Read error: Connection reset by peer]
loincloth has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
stef204 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
gwendall has joined #ruby-lang
gwendall_ has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
gwendall_ has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
loincloth has joined #ruby-lang
bruno- has joined #ruby-lang
loincloth has quit [Ping timeout: 252 seconds]
red_horned_rihno has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 256 seconds]
mattyohe has quit [Quit: Connection closed for inactivity]
car has joined #ruby-lang
zekriad has quit [Quit: Textual IRC Client: www.textualapp.com]
fujimura has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davispuh has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
djbkd_ has joined #ruby-lang
Steve_Jobs has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby-lang
Steve_Jobs has joined #ruby-lang
djbkd has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: zzz]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
djellemah has quit [Ping timeout: 272 seconds]
djellemah has joined #ruby-lang
havenwood has joined #ruby-lang
loincloth has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
loincloth has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby-lang
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
ruby-lang834 has joined #ruby-lang
gix has quit [Ping timeout: 248 seconds]
kickr has joined #ruby-lang
gix has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
Miphix has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 1.1.1]
centrx has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
car has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 250 seconds]
lektrik has joined #ruby-lang
lektrik has quit [Max SendQ exceeded]
lektrik has joined #ruby-lang
kickr has quit [Quit: Be back later ...]
<ruby-lang834> Is there a way to take a block, capture its code for later with string interpolation, and then instance_eval it at a later time? (ruby 2.2) Any suggestions greatly appreciated https://gist.github.com/activefx/5460d9236ba0ba7f1800
fujimura has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
kickr has joined #ruby-lang
nofxx has quit [Ping timeout: 264 seconds]
kickr has quit [Ping timeout: 250 seconds]
tsujp has joined #ruby-lang
loincloth has joined #ruby-lang
carldmitch has joined #ruby-lang
loincloth has quit [Ping timeout: 244 seconds]
netShadow has joined #ruby-lang
roobnoob has quit [Ping timeout: 244 seconds]
Swappticon has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby-lang
cpt_yossarian has quit [Ping timeout: 250 seconds]
<womble`> ruby-lang834: Why would you use string interpolation when you've already got a block?
* womble` reads the gist
yfeldblum has joined #ruby-lang
netShadow has quit [Quit: netShadow]
seank___ has quit [Remote host closed the connection]
womble` is now known as womble
iliketurtles has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby-lang
nofxx has joined #ruby-lang
fujimura has joined #ruby-lang
<ruby-lang834> womble: Thanks for taking a look. The example I posted was meant to be trivial. Here's the code that I'm working on: https://gist.github.com/activefx/cb5da877014d40b4702d I've temporarily solved the problem by including a module, setting class variables on the module that reference the blocks, and then referencing those class variables within the interpolated text
fujimura has quit [Read error: No route to host]
LMity has joined #ruby-lang
seank_ has joined #ruby-lang
fujimura has joined #ruby-lang
LMity has quit [Ping timeout: 256 seconds]
tropikan4 has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
tropikan4 has left #ruby-lang [#ruby-lang]
lektrik has quit [Ping timeout: 256 seconds]
tropikan4 has joined #ruby-lang
djbkd_ has quit [Quit: Leaving...]
tropikan4 has quit [Client Quit]
centrx has quit [Quit: Shutting down, Please wait...]
rbowlby has joined #ruby-lang
symm- has joined #ruby-lang
tharindu has joined #ruby-lang
symm- has quit [Quit: Leaving...]
<womble> ruby-lang834: I still don't get why you wouldn't just use define_method
tharindu has quit [Ping timeout: 255 seconds]
roobnoob has joined #ruby-lang
roobnoob has left #ruby-lang [#ruby-lang]
wut has joined #ruby-lang
shinnya has joined #ruby-lang
<ruby-lang834> womble: I will probably end up going back that way. I wanted the DSL contained in modules at the top of the inheritance hierarchy, and this method provided for easier overrides.
wut has quit [Client Quit]
chinmay_dd has joined #ruby-lang
charliesome has quit [Quit: zzz]
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby-lang
rbowlby has quit []
hahuang65 has quit [Ping timeout: 264 seconds]
caseydriscoll has joined #ruby-lang
rippa has joined #ruby-lang
skade has joined #ruby-lang
QuintinAdam has quit [Ping timeout: 252 seconds]
ruby-lang834 has quit [Ping timeout: 246 seconds]
SylarRuby has joined #ruby-lang
dellavg_ has joined #ruby-lang
_kfpratt has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
haraoka has joined #ruby-lang
Zen-Zen has joined #ruby-lang
stardiviner has quit [Ping timeout: 244 seconds]
iliketurtles has quit [Remote host closed the connection]
<Zen-Zen> hello ruby-lang... I opened a Github and posted my first Gist. Now I have a question for the smarties in here...
<Zen-Zen> What is wrong with this snippet.
<tbuehlmann> Zen-Zen, I assume you mean why the symbols array containts strings eventually?
fusillicode1 has quit [Quit: Leaving.]
<Zen-Zen> tbue... I am not sure. I am brand new to Ruby.
fusillicode has joined #ruby-lang
<Zen-Zen> I am taking a college class and going through an online Codeacademy at the same time.
<Zen-Zen> Stuck on this in CodeAcademy and cannot advance.
<tbuehlmann> you're asking what's wrong with the code. nothing, it seems, it should do what you ask it to do
<tbuehlmann> what's the problem you encounter?
<djellemah> Zen-Zen: .each do |s|
<Zen-Zen> The error msg is I did not create a variable called symbols... but it looks like I did.
<tbuehlmann> djellemah, perfect, didn't even see that
<djellemah> tbuehlmann: missing semicolon syndrome -)
chinmay_dd has quit [Remote host closed the connection]
<Zen-Zen> thx djellemah... you are correct, I had it your way and I changed it just to see if that would fix it.
<Zen-Zen> Now it reads I did not make HTML a symbol... so confused.
<Zen-Zen> On a side question is a Gist just code for public sharing as opposed to creating a file on GitHub?
<tbuehlmann> Zen-Zen, it's for having snippets and sharing
piotrj has joined #ruby-lang
<tbuehlmann> back to your problem: you don't save symbols in the symbols array, you save strings
<djellemah> Zen-Zen: Read this very carefully: http://ruby-doc.org/core-2.2.0/String.html#method-i-to_sym
<tbuehlmann> `s.to_sym` returns a symbol, but `s` is not changed by that. `s` is still the string
stardiviner has joined #ruby-lang
<djellemah> ^ what he said
hahuang65 has joined #ruby-lang
<Zen-Zen> Thx a bunch, I appreciate both of yours help!
<Zen-Zen> Sry for the rookie questions.
hahuang65 has quit [Ping timeout: 244 seconds]
micmus has joined #ruby-lang
fusillicode1 has joined #ruby-lang
fusillicode1 has quit [Client Quit]
fusillicode has quit [Ping timeout: 255 seconds]
<Zen-Zen> Got it, thx again....
micmus has quit [Ping timeout: 244 seconds]
fusillicode has joined #ruby-lang
fusillicode has quit [Client Quit]
chouhoulis has joined #ruby-lang
fusillicode has joined #ruby-lang
stardiviner has quit [Ping timeout: 244 seconds]
|jemc| has joined #ruby-lang
fusillicode1 has joined #ruby-lang
chouhoulis has quit [Ping timeout: 265 seconds]
fusillicode has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
micmus has joined #ruby-lang
sandelius has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
nedp_ has joined #ruby-lang
kfpratt has joined #ruby-lang
nedp has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby-lang
bruno- has joined #ruby-lang
chinmay_dd has joined #ruby-lang
arBmind has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
Cocoabean has joined #ruby-lang
skade has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
Mark-6ma has joined #ruby-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 264 seconds]
mattyohe has joined #ruby-lang
Cocoabean has quit []
Cocoabean has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Cocoabean has quit [Client Quit]
wicope has joined #ruby-lang
red_horned_rihno has joined #ruby-lang
bruno- has joined #ruby-lang
hahuang65 has joined #ruby-lang
fusillicode has joined #ruby-lang
hahuang65 has quit [Ping timeout: 255 seconds]
fusillicode1 has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
jackscotti has joined #ruby-lang
sandelius has joined #ruby-lang
lele is now known as Guest24
skade has quit [Quit: Computer has gone to sleep.]
nofxx has quit [Ping timeout: 256 seconds]
jackscotti has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Musashi007 has joined #ruby-lang
skade has joined #ruby-lang
relix has joined #ruby-lang
ur5us has joined #ruby-lang
chinmay_dd has joined #ruby-lang
charliesome has quit [Quit: zzz]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
awar has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
micmus has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
fujimura has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
sarkyniin has joined #ruby-lang
awar has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby-lang
red_horned_rihno has quit [Ping timeout: 246 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get_ has joined #ruby-lang
djbkd has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Ping timeout: 252 seconds]
gwendall has joined #ruby-lang
skade has joined #ruby-lang
red_horned_rihno has joined #ruby-lang
hahuang65 has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
AlexAltea has joined #ruby-lang
sankaber has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
banister has joined #ruby-lang
sankaber has quit [Client Quit]
wicope has quit [Read error: Connection reset by peer]
micmus has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
relix has quit [Client Quit]
ledestin has joined #ruby-lang
relix has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
Cocoabean has joined #ruby-lang
haraoka has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
SylarRuby has quit []
LMity has joined #ruby-lang
skade has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
symm- has joined #ruby-lang
Cocoabean has quit []
Cocoabean has joined #ruby-lang
Cocoabean has quit [Client Quit]
Cocoabean has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GBrawl has joined #ruby-lang
Cocoabean has left #ruby-lang [#ruby-lang]
Cocoabean has joined #ruby-lang
Cocoabean has quit [Client Quit]
Cocoabean has joined #ruby-lang
Cocoabean has quit [Client Quit]
Cocoabean has joined #ruby-lang
Cocoabean has left #ruby-lang [#ruby-lang]
LMity has quit [Ping timeout: 246 seconds]
red_horned_rihno has quit [Ping timeout: 256 seconds]
fusillicode has quit [Read error: No route to host]
fusillicode has joined #ruby-lang
riotjones has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
micmus has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 255 seconds]
nedp_ has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby-lang
caseydriscoll has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CatMartyn has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 246 seconds]
apt-get_ has quit [Quit: Quit]
ur5us has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby-lang
ur5us has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
amystephen has joined #ruby-lang
relix has joined #ruby-lang
GBrawl has quit [Quit: (null)]
tsujp has quit [Quit: tsujp is snoozing]
Mark-6ma has quit [Quit: -]
piotrj has joined #ruby-lang
sarkyniin has joined #ruby-lang
jgpawletko has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
micmus has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
sarkyniin has quit [Ping timeout: 250 seconds]
centrx has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
skade has joined #ruby-lang
rikkipitt has joined #ruby-lang
sarkyniin has joined #ruby-lang
wicope has joined #ruby-lang
enebo has joined #ruby-lang
caseydriscoll has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 244 seconds]
caseydriscoll has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 250 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
zekriad has joined #ruby-lang
red_horned_rihno has quit [Quit: Leaving]
fusillicode has joined #ruby-lang
red_horned_rihno has joined #ruby-lang
piotrj has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
tsujp has joined #ruby-lang
fusillicode2 has joined #ruby-lang
fusillicode1 has quit [Read error: Connection reset by peer]
fusillicode has quit [Ping timeout: 272 seconds]
seank_ has quit [Remote host closed the connection]
semperfried76 has quit [Quit: Be back later ...]
fusillicode has joined #ruby-lang
fusillicode2 has quit [Ping timeout: 250 seconds]
caseydriscoll has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
gix has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby-lang
riotjones has joined #ruby-lang
gix has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 265 seconds]
fusillicode1 has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
carldmitch has quit [Quit: Leaving.]
carldmitch has joined #ruby-lang
fusillicode has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
CatMartyn has quit [Ping timeout: 265 seconds]
gwendall has joined #ruby-lang
bantic has joined #ruby-lang
|jemc| has joined #ruby-lang
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby-lang
|jemc| has quit [Client Quit]
skade has joined #ruby-lang
bruno- has quit [Ping timeout: 272 seconds]
|jemc| has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
cornerma1 has joined #ruby-lang
drewdavis has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 256 seconds]
drewdavis has joined #ruby-lang
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
hahuang65 has quit [Ping timeout: 252 seconds]
|jemc| has quit [Quit: WeeChat 1.1.1]
piotrj has joined #ruby-lang
caseydriscoll has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
QuintinAdam has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 272 seconds]
gwendall has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
chinmay_dd has joined #ruby-lang
QuintinAdam has quit [Ping timeout: 265 seconds]
b_hoffman has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
gwendall has joined #ruby-lang
amclain has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has quit [Quit: bantic]
bantic has joined #ruby-lang
amclain has quit [Read error: Connection reset by peer]
rikkipitt has quit [Remote host closed the connection]
kstuart has quit [Quit: WeeChat 1.1.1]
leat has joined #ruby-lang
duderonomy has joined #ruby-lang
amclain has joined #ruby-lang
yxhuvvd has joined #ruby-lang
yxhuvud has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
centrx has quit [Quit: Shutting down, Please wait...]
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
Missphoenix has joined #ruby-lang
Miphix has quit [Ping timeout: 265 seconds]
bantic has quit [Quit: bantic]
hahuang65 has joined #ruby-lang
QuintinAdam has joined #ruby-lang
QuintinAdam has quit [Max SendQ exceeded]
seank_ has joined #ruby-lang
QuintinAdam has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby-lang
roamingdog has joined #ruby-lang
LMity has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
<nofxx> If I have a class inherited from array (CoolArray < Array) to convert plain arrays to my class anything better than/wrong with CoolArray.new(obj) ?
piotrj has quit [Remote host closed the connection]
red_horned_rihno has quit [Ping timeout: 272 seconds]
<apeiros> nofxx: looks fine
<apeiros> nofxx: beware, though, subclassing a class you don't own is IMO a code smell. better use composition instead of inheritance.
piotrj has joined #ruby-lang
rikkipitt has joined #ruby-lang
<nofxx> apeiros, thank you. In this particular case there's no overwriting, only some methods additions, don't look so bad
LMity has quit [Ping timeout: 265 seconds]
inavle has joined #ruby-lang
<apeiros> nofxx: well, one problem you face is that e.g. CoolArray#select will return Array, not CoolArray
roamingdog has quit [Remote host closed the connection]
semperfried76 has joined #ruby-lang
QuintinAdam has quit []
bantic has joined #ruby-lang
red_horned_rihno has joined #ruby-lang
ledestin has joined #ruby-lang
<nofxx> apeiros, I see that a feature. The scenario: Polygon < Array, if you select a subset it's no longer a Polygon
<nofxx> see any better approach?
semperfried76 has quit [Ping timeout: 252 seconds]
<nofxx> it's not a full blown geometric lib, just a wrapper for mongoid btw
<apeiros> nofxx: if I select 4 points (3 edges) out from an 8 points (7 edges) polygon, I still have a polygon IMO
<nofxx> apeiros, you don't unless you close it... I may agree if it's LineString < Array
<apeiros> as said, I'd use composition, not inheritance. that is, have an instance variable @points e.g., and implement all methods. also see Forwardable and Delegator for simple delegation.
<jhass> point is, it varies from case to case whether it is expected, which makes it potentially unexpected. With composition you have more control or are at least less likely to oversee something
<jhass> er, *overlook
<nofxx> I see... practically that will be include Enumerable and def yield ? refresh my poor memory
<apeiros> def each
<nofxx> thanks again
gwendall has joined #ruby-lang
havenwood has joined #ruby-lang
<yxhuvvd> is yield even a legal method name?
<yxhuvvd> >> def yield; end;
<eval-in_> yxhuvvd => :yield (https://eval.in/308578)
<yxhuvvd> appears so.
<jhass> calling it is a bit trickier ;)
<Mon_Ouie> You can find several methods named the same as keywords in core ruby though. Range#begin and Range#and, Object#class, Fiber.yield, etc.
<yxhuvvd> Mon_Ouie, good point
dorei has joined #ruby-lang
enebo has joined #ruby-lang
sonic_boom has joined #ruby-lang
<apeiros> just can't use them as lvar name
b_hoffman has quit [Quit: b_hoffman]
<nofxx> How to mimic Array`s behavior of returning a default value? In the class Polygon; include Enumerable; attr_accessor :points, Can I skip writing #points everytime?
<nofxx> Polygon.new([1,2]) == [1,2]
sonic_boom has left #ruby-lang ["http://quassel-irc.org - Chat comfortably. Anywhere."]
gwendall has quit [Remote host closed the connection]
<nofxx> hm, actually that's doesn't looks like a good idea, but out of curiosity then... kinda a #to_o, def self...
skade has quit [Quit: Computer has gone to sleep.]
b_hoffman has joined #ruby-lang
gwendall has joined #ruby-lang
tsujp has quit [Quit: tsujp is snoozing]
<yxhuvvd> nofxx: you could do something like def Polygon.[] x,y; end and then call it would Polygon[1,2]
roamingdog has joined #ruby-lang
<yxhuvvd> and define your own == to automatically call points if there is an array on the right hand side
<nofxx> yxhuvvd, that works when myobj == foo , but won't with foo == myobj or foo.anything(obj)
<yxhuvvd> true.
<yxhuvvd> to_ary could work if that is wanted.
gwendall has quit [Ping timeout: 272 seconds]
sankaber has joined #ruby-lang
<yxhuvvd> (I think)
sankaber has quit [Client Quit]
roamingdog has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
roamingdog has joined #ruby-lang
momomomomo has quit [Client Quit]
momomomomo has joined #ruby-lang
<nofxx> yxhuvvd, something like def to_obj; points end strange is that the default of your class is going to be another class, but, would work.
relix has joined #ruby-lang
momomomomo has quit [Ping timeout: 272 seconds]
Missphoenix has quit [Quit: Leaving]
skade has joined #ruby-lang
dzejrou has joined #ruby-lang
sarkyniin has quit [Ping timeout: 244 seconds]
sarahdashdashp has joined #ruby-lang
<yorickpeterse> this channel is surprisingly active for the easter holidays
<yorickpeterse> probably a bunch of non believers in here
* yorickpeterse shakes pitchfork
dellavg_ has joined #ruby-lang
riotjones has joined #ruby-lang
<maloik> the iso_countries gem has a hash that contains this: ":af => N_("Afghanistan"),"
<maloik> does anyone know what N_(str) is?
<maloik> bit hard to search on
<nofxx> yorickpeterse, is there the don't eat meat thing in your country also?
<nofxx> chocolate or real eggs?
<jhass> maloik: looks like a method call
<maloik> I think it is yea but no luck finding what it is so far
<yorickpeterse> nofxx: Oh yeah, chocolate easter eggs are a thing here
<yorickpeterse> kids love it
<maloik> https://github.com/koke/iso_countries in case you'd care to have a look
<jhass> maloik: it's gettext
<yorickpeterse> ^ about to say that
<yorickpeterse> the include Gettext should probably give it away :P
<maloik> yep, just found that
<maloik> overlooked it
<nofxx> my grandpa use to have a barbecue on holy friday, actually depicts what christianity is: you may do wrong 364 days of the year if you just do it right one day
<yorickpeterse> hahaha
<yorickpeterse> did he
<yorickpeterse> BBQ for our sins?
<yorickpeterse> ( •_•) ( •_•)>⌐■-■ (⌐■_■)
riotjones has quit [Ping timeout: 248 seconds]
<maloik> yorick broke my irc client
<nofxx> yorickpeterse, kardecist fanatic
<yorickpeterse> lol
<maloik> and yes yes I know, fix my terminal/irssi client
sarkyniin has joined #ruby-lang
<yorickpeterse> maloik: http://weechat.org/
lytol has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
the_real_intinig has joined #ruby-lang
hahuang65 has joined #ruby-lang
gwendall has joined #ruby-lang
hahuang65 has quit [Ping timeout: 265 seconds]
gwendall has quit [Ping timeout: 265 seconds]
jevs has joined #ruby-lang
centrx has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
carldmitch has quit [Quit: Leaving.]
b_hoffman has joined #ruby-lang
mcclurmc_ has joined #ruby-lang
symm- has quit [Ping timeout: 245 seconds]
dzejrou has quit [Read error: Connection reset by peer]
mcclurmc has quit [Ping timeout: 250 seconds]
b_hoffman has quit [Ping timeout: 255 seconds]
<darix> maloik: your terminal font probably
bantic has quit [Quit: bantic]
shinnya has joined #ruby-lang
<maloik> pffft effort
<maloik> this works, it's fine
roamingdog has joined #ruby-lang
ur5us has joined #ruby-lang
b_hoffman has joined #ruby-lang
SaltyWendigo has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby-lang
shinnya has quit [Ping timeout: 245 seconds]
davispuh has joined #ruby-lang
jgpawletko has joined #ruby-lang
symm- has joined #ruby-lang
skade has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
enebo has quit [Quit: enebo]
_whitelogger has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
Zen-Zen has quit []
semperfried76 has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
roamingdog has joined #ruby-lang
kadoppe has quit [Ping timeout: 256 seconds]
fusillicode1 has quit [Ping timeout: 252 seconds]
kadoppe has joined #ruby-lang
DLSteve has joined #ruby-lang
arquebus has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
znz_jp has quit [Ping timeout: 250 seconds]
arquebus has left #ruby-lang ["Konversation terminated!"]
ruby-lang828 has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
kstuart has joined #ruby-lang
riotjones has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
semperfried76 has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 250 seconds]
ruby-lang828 has quit [Ping timeout: 246 seconds]
gwendall has joined #ruby-lang
hahuang65 has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
leat has quit [Ping timeout: 250 seconds]
SaltyWendigo_ has joined #ruby-lang
inavle has quit [Ping timeout: 246 seconds]
b_hoffman has quit [Quit: b_hoffman]
hahuang65 has quit [Ping timeout: 244 seconds]
[H]unt3r has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
dzejrou has joined #ruby-lang
SaltyWendigo has quit [Ping timeout: 265 seconds]
caseydriscoll has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
sankaber has joined #ruby-lang
davispuh has quit [Read error: Connection reset by peer]
caseydriscoll has quit [Ping timeout: 252 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
davispuh has joined #ruby-lang
rikkipitt has joined #ruby-lang
seank_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 264 seconds]
bantic has joined #ruby-lang
wicope has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lytol has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
rails038 has joined #ruby-lang
<rails038> hi
roamingdog has quit [Remote host closed the connection]
<jhass> hi
bantic has quit [Quit: bantic]
<rails038> i'm looking for a ror programmer for a project. maybe someone can help me finding one?
ur5us has joined #ruby-lang
<jhass> don't think so, this isn't really a job board
<jhass> if anywhere #RubyOnRails anyway
<jhass> not saying that place is a job board either though
<rails038> k, ty
enebo has joined #ruby-lang
bruno- has joined #ruby-lang
rails038 is now known as dprill
gwendall has joined #ruby-lang
bruno- has quit [Ping timeout: 246 seconds]
gwendall has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
bruno- has joined #ruby-lang
bantic has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 256 seconds]
kfpratt has joined #ruby-lang
dprill has left #ruby-lang [#ruby-lang]
relix has joined #ruby-lang
bantic has quit [Quit: bantic]
jgpawletko has joined #ruby-lang
bruno- has quit [Ping timeout: 244 seconds]
sarahdashdashp has quit [Quit: sarahdashdashp]
rikkipitt has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
workmad3 has joined #ruby-lang
semperfried76 has joined #ruby-lang
roamingdog has quit [Read error: No route to host]
roamingdog has joined #ruby-lang
7JTAAC2CC has quit [Quit: Leaving...]
ItSANgo has joined #ruby-lang
bruno- has joined #ruby-lang
riotjones has joined #ruby-lang
ur5us has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
roamingdog has quit [Remote host closed the connection]
micmus has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 248 seconds]
lytol has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 252 seconds]
roamingdog has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
kfpratt has joined #ruby-lang
hahuang65 has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
gwendall has joined #ruby-lang
semperfried76 has quit [Ping timeout: 250 seconds]
gwendall has quit [Ping timeout: 250 seconds]
havenn has joined #ruby-lang
seank_ has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
centrx has quit [Quit: Shutting down, Please wait...]
havenwood has quit [Ping timeout: 246 seconds]
caseydriscoll has joined #ruby-lang
jefus_ has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
caseydriscoll has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dzejrou has quit [Quit: Leaving]
jefus has quit [Ping timeout: 265 seconds]
quintinadam has joined #ruby-lang
roamingdog has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
Contigi has quit [Quit: Leaving]
sarkyniin has quit [Remote host closed the connection]
red_horned_rihno has quit [Ping timeout: 256 seconds]
Forgetful_Lion has joined #ruby-lang
LMity has joined #ruby-lang
red_horned_rihno has joined #ruby-lang
Contigi has joined #ruby-lang
skade has quit [Ping timeout: 245 seconds]
znz_jp has joined #ruby-lang
skade has joined #ruby-lang
Caius has quit [Ping timeout: 276 seconds]
semperfried76 has joined #ruby-lang
gwendall has joined #ruby-lang
malconis has joined #ruby-lang
Caius has joined #ruby-lang