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
elia has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby-lang
nathanstitt has joined #ruby-lang
cornerma1 has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
enebo has joined #ruby-lang
malconis has joined #ruby-lang
arooni-mobile has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snsei has joined #ruby-lang
Rayford has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
waxjar has joined #ruby-lang
snsei has quit [Ping timeout: 255 seconds]
jacecore has quit [Read error: Connection reset by peer]
rubert has joined #ruby-lang
<rubert> Hi, I have am new to Ruby and in need of advice. I defined some methods and instance variables in a gem using class << self, thinking it would add the instance variables to main's singleton class. When I try to use those methods in a Sinatra Route, or a class, it can't find the methods. I was under the impression that when a class can't find a meth
symm- has joined #ruby-lang
<rubert> od, it asks its ancestor if it responds to said method. Would that not be main? How can I get the functionality I want?
SylarRuby has quit [Remote host closed the connection]
<jhass> add them to Kernel
<jhass> Kernel is the place where "global" methods reside
revath has quit [Ping timeout: 256 seconds]
<jhass> to make it a bit cleaner include a module with your methods into Kernel
nathanstitt has quit [Quit: I growing sleepy]
<jhass> though I'd ponder if MyGem.method instead of method is really that much of a pain
<jhass> also check Moudle#module_function
<rubert> Ok, thanks! I am considering just using a class, but I was trying to go for a DSL approach just for fun.
snsei has joined #ruby-lang
revath has joined #ruby-lang
<jhass> DSLs usually are realized via instance_eval
<jhass> MyGem.fancy do fany_a; fancy_b; end;
jwaldrip has quit [Quit: Be back later ...]
<jhass> stuff like that
snsei has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
my0373 has quit []
baweaver has quit [Remote host closed the connection]
<pipework> mmm instance eval
<pipework> Parsers are cooler, but blocks are fun.
baweaver has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
baweaver has quit [Ping timeout: 256 seconds]
snsei has joined #ruby-lang
snsei has quit [Remote host closed the connection]
marr has quit []
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jo__ has joined #ruby-lang
snsei has joined #ruby-lang
amclain has joined #ruby-lang
Rayford has quit [Quit: Rayford]
sferik has joined #ruby-lang
snsei has quit [Remote host closed the connection]
riotjone_ has joined #ruby-lang
djellemah_ has joined #ruby-lang
wallerdev has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
snsei has joined #ruby-lang
martinbmadsen has joined #ruby-lang
djellemah__ has quit [Ping timeout: 256 seconds]
riotjone_ has quit [Ping timeout: 252 seconds]
snsei has quit [Remote host closed the connection]
rubert has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wallerdev has quit [Quit: wallerdev]
CatMartyn has joined #ruby-lang
nathanstitt has joined #ruby-lang
rubert has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby-lang
baweaver has joined #ruby-lang
anekant has joined #ruby-lang
baweaver has quit [Ping timeout: 265 seconds]
rubert has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
snsei has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
snsei has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 255 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_kfpratt has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
smoitra has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> NameError: uninitialized constant Bundler -> wtf, i have bundler installed
j4cknewt has quit [Remote host closed the connection]
<imperator> happens on: require 'bundler/gem_tasks'
<imperator> if i require bundler first, then try to require bundler/gem_tasks i get this:
wallerdev has joined #ruby-lang
<imperator> NoMethodError: undefined method `desc' for #<Bundler::GemHelper:0x2f3d3cc>
<imperator> yorickpeterse, what version of bundler you running?
sferik has joined #ruby-lang
j4cknewt has joined #ruby-lang
<jhass> 1.9 was released today
j4cknewt has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
<imperator> that's what i have
<imperator> maybe i need to downgrade
bruno- has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
<imperator> yep, 1.9 broke shit
<anekant> why do I get an error "wrong number of arguments (1 for 0) (ArgumentError)" on a line that has "sleep 3"; that line works in irb
iamninja has quit [Read error: Connection reset by peer]
smoitra has quit [Read error: No route to host]
iamninja has joined #ruby-lang
<imperator> anekant, huh? what version of ruby? what platform? was it redefined somewhere?
<anekant> v 2.1.5. is there a way of specifying the ruby sleep? maybe a library I included redefined it without me knowing?
j4cknewt has joined #ruby-lang
yfeldblum has joined #ruby-lang
<CatMartyn> @anekant exactly overridden by something
revath has quit [Ping timeout: 265 seconds]
<imperator> that would be...highly unusual
<imperator> is this a large project or can you narrow it down?
<imperator> hm, anyone remember which CONFIG option tells you which compiler was used?
kfpratt has joined #ruby-lang
<anekant> I had :sleep declared as an attr_accessor because I have a variable @sleep
<anekant> I took it out of the attr_accessor list and it works now
<anekant> so do I rename my @sleep? is that what confused it?
<anekant> or use a setter?
<imperator> you don't have to rename @sleep, just use a different method name
symm- has quit [Ping timeout: 255 seconds]
<imperator> like set_sleep, get_sleep
<havenwood> imperator: RbConfig::CONFIG['CC']
<imperator> havenwood, danke
<havenwood> imperator: de nada
<havenwood> >> RbConfig::CONFIG['CC']
<eval-in_> havenwood => "gcc" (https://eval.in/302743)
Musashi007 has quit [Quit: Musashi007]
snsei has joined #ruby-lang
<anekant> I've forgotten how to run script at the bottom of a class file if it's executed from the command line, how to check if it's the main file
<anekant> if (__FILE__) == $0?
<imperator> if $0 == __FILE__
kfpratt has quit [Remote host closed the connection]
caseypatrickdris has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 252 seconds]
martinbmadsen has joined #ruby-lang
riotjones has quit [Ping timeout: 265 seconds]
vipaca has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
ghostpl_ has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
duderonomy has joined #ruby-lang
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vipaca has joined #ruby-lang
sankaber has joined #ruby-lang
snsei has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
CatMartyn has quit [Ping timeout: 272 seconds]
snsei has quit [Ping timeout: 245 seconds]
snsei has joined #ruby-lang
jwaldrip has joined #ruby-lang
snsei has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
arooni-mobile has quit [Ping timeout: 256 seconds]
jo__ has quit [Quit: Connection closed for inactivity]
spuk has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby-lang
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
<imperator> building ragel from source on windows with vs....this should be fun
shinnya has quit [Ping timeout: 264 seconds]
ruby-lang203 has joined #ruby-lang
<ruby-lang203> a
revath has joined #ruby-lang
Asher has quit [Quit: Leaving.]
ruby-lang203 has quit [Ping timeout: 246 seconds]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Asher has joined #ruby-lang
vipaca has joined #ruby-lang
vipaca has quit [Client Quit]
xcesariox has joined #ruby-lang
snsei has joined #ruby-lang
revath has quit [Ping timeout: 246 seconds]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
xcesariox has joined #ruby-lang
amclain_ has joined #ruby-lang
xcesariox has quit [Client Quit]
gix has quit [Ping timeout: 246 seconds]
amclain has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
guillaume-rb has quit [Quit: guillaume-rb]
riotjone_ has joined #ruby-lang
xcesariox has joined #ruby-lang
xcesariox has quit [Client Quit]
hahuang65 has joined #ruby-lang
cryo28 has joined #ruby-lang
riotjone_ has quit [Ping timeout: 245 seconds]
havenn has joined #ruby-lang
cryo28 has quit [Client Quit]
cryo28 has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
cryo28 has quit [Client Quit]
cryo28 has joined #ruby-lang
havenwood has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby-lang
gwendall has joined #ruby-lang
rgb-one has quit [Read error: Connection reset by peer]
revath has joined #ruby-lang
rbowlby_ has quit []
martinbmadsen has quit [Ping timeout: 246 seconds]
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anekant has quit [Ping timeout: 252 seconds]
imperator has quit [Quit: Valete!]
amclain_ is now known as amclain
revath has quit [Ping timeout: 252 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
leat1 has quit [Quit: leat1]
leat has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
sferik has joined #ruby-lang
martinbmadsen has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davispuh has quit [Remote host closed the connection]
smoitra has joined #ruby-lang
Musashi007 has joined #ruby-lang
Musashi007 has quit [Client Quit]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
Iskarlar has joined #ruby-lang
cryo28 has quit [Quit: leaving]
sferik_ has joined #ruby-lang
sferik has quit [Ping timeout: 264 seconds]
x44x45x41x4E has joined #ruby-lang
jwaldrip has quit [Quit: Be back later ...]
jwaldrip has joined #ruby-lang
spuk has joined #ruby-lang
jwaldrip has quit [Ping timeout: 265 seconds]
snsei has quit [Remote host closed the connection]
ghostpl_ has joined #ruby-lang
fusillicode has joined #ruby-lang
shinnya has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 264 seconds]
snsei has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 264 seconds]
fusillicode1 has joined #ruby-lang
smoitra has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby-lang
snsei has quit [Remote host closed the connection]
fusillicode has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
snsei has joined #ruby-lang
snsei has quit [Remote host closed the connection]
smoitra has joined #ruby-lang
anekant has joined #ruby-lang
hakunin has quit []
gwendall has quit [Remote host closed the connection]
hakunin has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby-lang
dellavg_ has joined #ruby-lang
rippa has joined #ruby-lang
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
havenn has quit []
hakunin has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
leat has quit [Ping timeout: 250 seconds]
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 256 seconds]
bb010g has joined #ruby-lang
bruno- has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
hahuang65 has quit [Quit: Connection closed for inactivity]
bruno- has quit [Ping timeout: 264 seconds]
anekant has quit [Ping timeout: 252 seconds]
gwendall has joined #ruby-lang
riotjone_ has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
martinbmadsen has quit [Ping timeout: 264 seconds]
riotjone_ has quit [Ping timeout: 256 seconds]
djellemah__ has joined #ruby-lang
djellemah has joined #ruby-lang
|jemc| has quit [Ping timeout: 255 seconds]
djellemah_ has quit [Ping timeout: 250 seconds]
djellemah__ has quit [Ping timeout: 245 seconds]
djellemah_ has joined #ruby-lang
djellemah has quit [Ping timeout: 245 seconds]
relix has joined #ruby-lang
anekant has joined #ruby-lang
djellemah_ has quit [Quit: Leaving]
Iskarlar has joined #ruby-lang
leat has joined #ruby-lang
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby-lang
glurpman has joined #ruby-lang
glurpman has quit [Client Quit]
SylarRuby has joined #ruby-lang
ruby-lang340 has joined #ruby-lang
<ruby-lang340> hello
sarkyniin has joined #ruby-lang
ruby-lang340 has quit [Client Quit]
relix_ has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
relix has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros_ has quit [Client Quit]
leat has quit [Ping timeout: 245 seconds]
leat has joined #ruby-lang
jwaldrip has joined #ruby-lang
jwaldrip has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 246 seconds]
leat has joined #ruby-lang
michael_mbp has quit [Excess Flood]
leat has quit [Ping timeout: 252 seconds]
michael_mbp has joined #ruby-lang
Olipro_ has joined #ruby-lang
Olipro_ is now known as Guest37462
justinmcp_ has quit [Ping timeout: 244 seconds]
leat has joined #ruby-lang
gwendall has joined #ruby-lang
havenwood has joined #ruby-lang
justinmcp has joined #ruby-lang
ohsix has quit [Ping timeout: 252 seconds]
riotjones has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
arBmind has joined #ruby-lang
duderonomy has joined #ruby-lang
leat has quit [Ping timeout: 256 seconds]
caseypatrickdris has joined #ruby-lang
tdy has quit [Ping timeout: 255 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
codenihal has joined #ruby-lang
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
codenihal has quit [Client Quit]
Iskarlar has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
elia has joined #ruby-lang
tdy has joined #ruby-lang
elia has quit [Client Quit]
fusillicode has joined #ruby-lang
fusillicode1 has quit [Read error: No route to host]
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 255 seconds]
leat has joined #ruby-lang
revath has joined #ruby-lang
martinbmadsen has joined #ruby-lang
SylarRuby has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 264 seconds]
solars has joined #ruby-lang
anekant has quit [Ping timeout: 252 seconds]
SylarRuby has joined #ruby-lang
sferik_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat has joined #ruby-lang
the_real_intinig has joined #ruby-lang
leat has quit [Ping timeout: 252 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
fusillicode1 has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
the_real_intinig has quit [Remote host closed the connection]
leat has joined #ruby-lang
revath has quit [Read error: Connection reset by peer]
fusillicode1 has joined #ruby-lang
bruno- has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
leat has quit [Ping timeout: 250 seconds]
the_real_intinig has joined #ruby-lang
bruno- has quit [Ping timeout: 255 seconds]
leat has joined #ruby-lang
SylarRuby has quit [Remote host closed the connection]
the_real_intinig has quit [Remote host closed the connection]
caseypatrickdris has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
SylarRuby has joined #ruby-lang
riotjone_ has joined #ruby-lang
SylarRuby has quit [Ping timeout: 244 seconds]
revath has joined #ruby-lang
riotjone_ has quit [Ping timeout: 264 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosfeer has joined #ruby-lang
Versality has joined #ruby-lang
nofxx has quit [Ping timeout: 250 seconds]
<atmosfeer> Hey everyone, I'm in my second week of coding Ruby and I'm trying to code a little program that will fetch recipes online with nokogiri, but I can't get it to work. Here's the code that won't do what I want it to: https://gist.github.com/atmosfeer/21704db6ea09e35c4115
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
the_real_intinig has joined #ruby-lang
<atmosfeer> Why do I get an error message using that code? It says "No such file or directory @ rb_sysopen" at the URL I want to parse...
the_real_intinig has quit [Remote host closed the connection]
<Versality> I think it's due to this: Nokogiri::HTML(File.open("http:
<Versality> you're trying to open up URI with File.open
<Versality> this is not how you open up URL
<Versality> atmosfeer: this is the correct syntax: doc = Nokogiri::HTML(open("http://www.threescompany.com/"))
<atmosfeer> Versality: AHHHH
<atmosfeer> Versality: Thank you! I copy pasted some earlier code where I was opening a local html file just to test it out. Thank you so much
mikecmpbll has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
relix has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 265 seconds]
sferik has joined #ruby-lang
yfeldblu_ has quit [Quit: Leaving...]
bruno- has joined #ruby-lang
leat has quit [Read error: Connection reset by peer]
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
the_real_intinig has joined #ruby-lang
revath has quit [Ping timeout: 252 seconds]
CatMartyn has joined #ruby-lang
sferik has quit [Read error: Connection reset by peer]
the_real_intinig has quit [Remote host closed the connection]
sferik has joined #ruby-lang
leat has joined #ruby-lang
anekant has joined #ruby-lang
symm- has joined #ruby-lang
the_real_intinig has joined #ruby-lang
bruno- has joined #ruby-lang
<atmosfeer> I have another problem with Nokogiri. I need to iterate over each content tagged with the css class "m_contenu_resultat" but sometimes that content doesn't include the css content I'm actually after, which is nested inside it. How do I skip those cases in my iteration? https://gist.github.com/atmosfeer/ae5e3861a04984045194
cornerma1 has joined #ruby-lang
sankaber has joined #ruby-lang
leat has quit [Ping timeout: 250 seconds]
<atmosfeer> It gives me an undefined method error when it doesn't find "m_titre_resultat" class content inside the "m_contenu_resultat"
leat has joined #ruby-lang
marr has joined #ruby-lang
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
SylarRuby has joined #ruby-lang
ghostpl_ has joined #ruby-lang
the_real_intinig has quit [Remote host closed the connection]
Versality has quit [Quit: Lingo: www.lingoirc.com]
leat has quit [Ping timeout: 264 seconds]
Versality has joined #ruby-lang
levifig has quit [Ping timeout: 252 seconds]
unreal has quit [Ping timeout: 250 seconds]
Versality has quit [Client Quit]
unreal has joined #ruby-lang
leat has joined #ruby-lang
stef204 has joined #ruby-lang
levifig has joined #ruby-lang
<jhass> atmosfeer: undefined method for what?
<atmosfeer> jhass: undefined method `[]' for nil:NilClass. Basically it's trying to push something that doesn't exist into my array recipe_parameters
<jhass> so that's line 31?
<jhass> er 33
<atmosfeer> yes 33
<jhass> so your regex doesn't match in these cases
<atmosfeer> exactly
<jhass> String#match returns nil if there's no match
<jhass> so you just need to fix the regexp to match these cases or skip (like you already do on 26) if match_data is nil
<jhass> or maybe those cases have something in common and you can improve your selector to not include them
caseypatrickdris has joined #ruby-lang
<atmosfeer> jhass: well the cases are, that with my "m_contenu_resultat" there is none of the subcategories I'm after. But I spent an hour looking through the Nokogiri doc and I can't figure it out
anekant has quit [Ping timeout: 252 seconds]
<atmosfeer> jhass: I find the Nokogiri syntax very confusing still...
waxjar has quit [Ping timeout: 265 seconds]
<jhass> well, it takes plain css or xpath selectors
apt-get_ has joined #ruby-lang
<jhass> all you know about these you can apply
<atmosfeer> But how can I just include a css class that includes another css class, and none of the others?
leat has quit [Ping timeout: 256 seconds]
sarkyniin has quit [Ping timeout: 245 seconds]
leat has joined #ruby-lang
<atmosfeer> jhass can I use xpath on an html document or only on an xml document?
<jhass> you can use xpath on an html document and css on an xml document
havenwood has quit [Remote host closed the connection]
<jhass> looks like CSS4 will have :has(), but it's nowhere implemented yet
<jhass> with xpath you can do something like "//*[@class='m_titre_resultat']/a/.."
<jhass> it gets tricky if you have multiple classes on an element though
<jhass> since xpath only matches the whole attribute content
the_real_intinig has joined #ruby-lang
<atmosfeer> jhass: Hmmm okay. how do I make my next if work in the iteration then? As it is in the code I uploaded it just skips through the whole thing. I tried calling .empty? and .nil? on element.search('.m_titre_resultat > a') to no avail...
<jhass> .empty? should work
<jhass> atmosfeer: do you know pry?
<atmosfeer> jhass: no what is that?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> try gem install pry
<jhass> and then anywhere in your code require "pry"; binding.pry
the_real_intinig has quit [Ping timeout: 256 seconds]
gwendall has quit [Remote host closed the connection]
rikkipitt has joined #ruby-lang
sankaber has joined #ruby-lang
sankaber has quit [Client Quit]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
AlxAltea has joined #ruby-lang
atmosfeer has quit [Ping timeout: 246 seconds]
apt-get_ has quit [Remote host closed the connection]
AlexAltea has quit [Ping timeout: 264 seconds]
sferik has quit [Read error: Connection reset by peer]
jwaldrip has joined #ruby-lang
kfpratt has joined #ruby-lang
jwaldrip has quit [Ping timeout: 246 seconds]
waroperator has quit [Quit: Leaving]
waroperator has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
guillaume-rb has joined #ruby-lang
<darix> <3 binding.pry
symm- has quit [Ping timeout: 264 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
yalue has quit [Quit: return 0;]
ledestin has joined #ruby-lang
Pugsley has quit [Quit: ZNC - http://znc.in]
dagda1 has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby-lang
sankaber has joined #ruby-lang
tkuchiki has joined #ruby-lang
martinbmadsen has joined #ruby-lang
snsei has joined #ruby-lang
riotjones has joined #ruby-lang
tsujp has joined #ruby-lang
hhatch has joined #ruby-lang
snsei has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 255 seconds]
martinbmadsen has quit [Ping timeout: 264 seconds]
elia has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SHyx0rmZ has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 256 seconds]
snsei has joined #ruby-lang
houhoulis has joined #ruby-lang
SHyx0rmZ has joined #ruby-lang
j4cknewt has joined #ruby-lang
gwendall has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
kfpratt has quit [Remote host closed the connection]
micmus has joined #ruby-lang
enebo has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
snsei has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby-lang
snsei has joined #ruby-lang
stef204 has joined #ruby-lang
stef204 has quit [Client Quit]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
rgb-one has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anekant has joined #ruby-lang
anekant has quit [Changing host]
anekant has joined #ruby-lang
SylarRuby has quit []
tdy has quit [Ping timeout: 264 seconds]
centrx has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
waxjar has joined #ruby-lang
jwaldrip has joined #ruby-lang
havenwood has joined #ruby-lang
[H]unt3r has joined #ruby-lang
tdy has joined #ruby-lang
stef204 has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
snsei has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
AlxAltea has quit [Quit: Leaving]
tkuchiki has quit [Ping timeout: 250 seconds]
jds has joined #ruby-lang
riotjones has joined #ruby-lang
martinbmadsen has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 244 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 264 seconds]
revath has joined #ruby-lang
ender|dkm has joined #ruby-lang
j4cknewt has quit [Ping timeout: 244 seconds]
waroperator has quit [Remote host closed the connection]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
amclain has joined #ruby-lang
b_hoffman has joined #ruby-lang
b_hoffman has quit [Client Quit]
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
enebo has quit [Quit: enebo]
<jhass> haha, nice one
j4cknewt has joined #ruby-lang
enebo has joined #ruby-lang
stef204 has joined #ruby-lang
j4cknewt has quit [Ping timeout: 255 seconds]
snsei has joined #ruby-lang
snsei has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby-lang
mahmoudmahfouz has joined #ruby-lang
mahmoudmahfouz has quit [Remote host closed the connection]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
jwaldrip has quit [Quit: Lingo: www.lingoirc.com]
tsujp has quit [Quit: tsujp is snoozing]
jwaldrip has joined #ruby-lang
snsei has joined #ruby-lang
anekant has quit [Ping timeout: 252 seconds]
revath has quit [Ping timeout: 256 seconds]
gwendall has quit [Remote host closed the connection]
steve-la_ has joined #ruby-lang
tenderlove has quit [Quit: Leaving...]
martinbmadsen has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
[H]unt3r has joined #ruby-lang
leat has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 246 seconds]
rikkipitt has quit [Remote host closed the connection]
leat has joined #ruby-lang
j4cknewt has joined #ruby-lang
micmus has quit [Ping timeout: 265 seconds]
leat has quit [Ping timeout: 256 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
leat has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
rgb-one has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
j4cknewt has joined #ruby-lang
steve-la_ has quit [Quit: Lingo: www.lingoirc.com]
solars has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
micmus has joined #ruby-lang
symm- has joined #ruby-lang
martinbmadsen has joined #ruby-lang
elia has joined #ruby-lang
wallerdev has joined #ruby-lang
yfeldblum has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
lytol has joined #ruby-lang
Miphix has quit [Quit: Leaving]
rikkipitt has joined #ruby-lang
leat has quit [Ping timeout: 255 seconds]
leat has joined #ruby-lang
elia has joined #ruby-lang
b_hoffman has joined #ruby-lang
j4cknewt has joined #ruby-lang
leat has quit [Ping timeout: 264 seconds]
elia has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has joined #ruby-lang
leat has joined #ruby-lang
spuk has quit [Remote host closed the connection]
spuk has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
mshieldsdunn has joined #ruby-lang
Miphix has joined #ruby-lang
leat has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
leat has joined #ruby-lang
ur5us has joined #ruby-lang
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
solars has quit [Ping timeout: 252 seconds]
leat has quit [Ping timeout: 256 seconds]
michael_mbp has quit [Excess Flood]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby-lang
michael_mbp has joined #ruby-lang
dagda1 has quit [Read error: No route to host]
dagda1 has joined #ruby-lang
leat has joined #ruby-lang
<yorickpeterse> https://github.com/bundler/bundler/issues/3492 anybody else experiencing this problem?
momomomomo has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
stef204 has joined #ruby-lang
sarkyniin has joined #ruby-lang
leat has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 246 seconds]
the_other_benn has joined #ruby-lang
<the_other_benn> Heya
houhoulis has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
<hakunin> kinda sad that ruby doesn't have kwargs struct in stdlib
<the_other_benn> wanted to know what would happen if an exception is thrown inside a Mutex object synchronize block
<the_other_benn> would the mutex be released?
<the_other_benn> (no rescue block)
<the_other_benn> sorry for the newbie question, couldn't find satisfactory google answers or documentation
<yorickpeterse> hakunin: "kwargs struct"?
<yorickpeterse> the_other_benn: yes
<hakunin> yes
<yorickpeterse> the_other_benn: Mutex#synchronize is basically a `lock; begin ... rescue unlock end`
<yorickpeterse> well, a begin/ensure to be exact
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<the_other_benn> Ahh okay, thank you
houhoulis has quit [Remote host closed the connection]
<the_other_benn> Is code pasting allowed here?
<the_other_benn> Ahh topic, sorry..
houhoulis has joined #ruby-lang
<jhass> hakunin: what's a kwargs struct?
<the_other_benn> Hi
<the_other_benn> I have a multi threading in ruby question
jds has quit [Quit: Connection closed for inactivity]
<the_other_benn> hopefully it is explained here
<the_other_benn> thanks in advanced for your help.
<hakunin> jhass: like a struct, but can use kwargs in constructor
<hakunin> jhass: S = Struct.new(:foo, :bar); S.new(foo: 'foo', bar: 'bar')
<hakunin> (this doesn't exist)
<jhass> hakunin: mmh, I see. OpenStruct allows that, though it may also allow stuff you don't want
<hakunin> jhass: yeah it's too open
<jhass> easy to write your own though
<hakunin> jhass: also weird to write your own, seems insanely generic, should really be in stdlib
<jhass> just take a hash and do some Class.new and define_method wizardy
<hakunin> yeah certainly
<hakunin> i mean, can just piggyback on Struct even
riotjones has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has quit [Remote host closed the connection]
tvon has quit [Quit: Lost terminal]
<hakunin> but imo it does a bit more than i'd like
riotjones has quit [Ping timeout: 246 seconds]
gwendall has joined #ruby-lang
jamo__ has joined #ruby-lang
wallerdev has joined #ruby-lang
<the_other_benn> Urm
<the_other_benn> what is the lifecycle of a module in ruby?
wallerdev has quit [Client Quit]
<the_other_benn> Is there a way to define a singleton mutex for it? (which is initialized prior to use)
[H]unt3r has quit [Quit: Leaving]
sankaber has joined #ruby-lang
dagda1 has joined #ruby-lang
leat has joined #ruby-lang
<hakunin> the_other_benn: hm you want something to happen before module include?
wallerdev has joined #ruby-lang
<the_other_benn> I want the mutex to be initialized (Mutex.new)
<hakunin> perhaps provide a method that does things, then runs include
<the_other_benn> I thought that was the purpose of initialize method
<hakunin> in a module?
<the_other_benn> After coming from javascript/c++, I'm pretty sure I do not understand the concept of a module in ruby
revath has joined #ruby-lang
<the_other_benn> I need to do some more reading about it.
<hakunin> it's ok, you seem to be doing something complex, mutex + module, sounds unusual
<the_other_benn> not sure it has to be complex
<hakunin> module is similar to multiple inheritance
<hakunin> you can put logic in module, then add it to various classes
<hakunin> if you include module in a class, methods in that module become methods on instances of that class
<the_other_benn> OK, thanks for the information
<the_other_benn> for some reason I thought a module is an entity I would use the same way I would a helper class
<the_other_benn> static access, no instance
<hakunin> the_other_benn: you can do that too
<centrx> the_other_benn, The Math module in Ruby core is an example of that - http://ruby-doc.org/core-2.2.0/Math.html
<hakunin> the_other_benn: if you put a magic method "module_function" at the top of module, all methods in it can be used directly Foo.some_metohd
revath has quit [Ping timeout: 256 seconds]
<hakunin> this is not a very good programming practice in general, and if you're dealing with state in multithreaded environment - it only gets worse
<the_other_benn> OK, so why would adding a mutex to the module ("Helper Class") be complex?
<hakunin> the_other_benn: it sounds complex, but you haven't really explained what you're doing
<the_other_benn> I'm creating a small lib for short url generation
<hakunin> sounds simple enough
<the_other_benn> the short url is an active record (model).
<the_other_benn> and I'm creating a module named Shorty, which helps me generate the ShortUrl instances
<hakunin> not sure where the need for mutex comes in
ur5us has quit [Ping timeout: 272 seconds]
<the_other_benn> the short url consists of an hash and a long url. the hash is generated from a unique number (in my case the ShortUrl db size or ShortUrl.count)
<hakunin> why not generate hash from long url
<the_other_benn> Since I would like this to be able to handle many requests, I would like the ShortUrl.count (for hash generation) & the ShortUrl.save to be synchronized
leat has quit [Ping timeout: 252 seconds]
<the_other_benn> since hash would not be necceserly unique
<the_other_benn> the url_hash is actually a conversion of the Integer to Base51
<the_other_benn> which promises uniqueness (might grow with time, but still unique)
leat has joined #ruby-lang
<hakunin> that seems highly inefficient, you would only be able to shorten 1 url at a time, if you run 2 apps in parallel - you're still colliding
vipaca has joined #ruby-lang
<hakunin> .count is very heavy and unreliable approach
<the_other_benn> I would not be colliding of the ShortUrl.count and ShortUrl.save would happen in a single transaction which is protected by mutex
<the_other_benn> of = if
<hakunin> not if you run 2 servers, or 2 forked apps
<hakunin> sharing a database
<the_other_benn> ahh, it is intended to be a single process
<hakunin> count can also go up and down
<hakunin> so with count you get more headaches than it's worth
<the_other_benn> it could, but lets assume it wouldn't
<the_other_benn> OK
<the_other_benn> how would you go about this problem?
<the_other_benn> without hash that is.
<hakunin> there are many ways to create unique numbers or strings
<hakunin> SecureRandom.hex is one of them
<hakunin> built into ruby
<hakunin> that's what gist.github.com uses for their urls
<the_other_benn> it seems to be fixed size
<hakunin> no you can alter size
<the_other_benn> looking at it now
<hakunin> it has a chance of collision, but you can create a db constraint for hash uniqueness, and it would raise an error on collision, which you can rescue and retry (would probably never happen though)
<the_other_benn> don't see it takes a string as an input
hhatch has quit [Ping timeout: 264 seconds]
<hakunin> it's not a hashing function
<hakunin> it generates unique random strings
<hakunin> out of nothing
<the_other_benn> ok
<the_other_benn> fair enough
<the_other_benn> I'll go with that approach
<the_other_benn> Thanks for the help/guidence
<the_other_benn> :>
<hakunin> np
ur5us has joined #ruby-lang
ur5us_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
micmus has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby-lang
<yorickpeterse> brrrrr, Windows
<yorickpeterse> granted, if I can get AppVeyor to run my stuff that would be pretty neat
ur5us has quit [Ping timeout: 264 seconds]
<hakunin> ruby's Struct is written in C, which makes it officially bad idea to inherit from
<hakunin> i guess
<centrx> huh?
<yorickpeterse> anybody here on windows _and_ has the 7zip CLI utility installed?
<yorickpeterse> derp my engrish
<centrx> How about a Windows VM with the 7zip GUI installed?
<yorickpeterse> Hm, I need the CLI since apparently I'm doing it wrong
<yorickpeterse> trying to get appveyor to run but it gives me this helpful error "Incorrect commandline"
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> which is either the download command, or the 7zip command
<yorickpeterse> (the latter being "7z e C:\ragel.7z -o C:\ragel -y")
caseypatrickdris has quit [Remote host closed the connection]
jamo__ has quit [Quit: leaving]
<centrx> I get the same output
<centrx> Incorrect commandline
micmus has joined #ruby-lang
<yorickpeterse> wtf
<centrx> ok got it
caseypatrickdris has joined #ruby-lang
<centrx> yorickpeterse, yorickpeterse, The directory after the -o has to be right next to the -o no space
<yorickpeterse> srsly
<yorickpeterse> well, lets see what appveyor has to say about that
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> centrx: sweet, that worked
<yorickpeterse> now onto the next problem
<centrx> sweet
<yorickpeterse> centrx: also, is there an option to supress output?
* yorickpeterse is crowdsourcing 7z --help
<yorickpeterse> "Everything is Ok" ha don't lie 7zip
<centrx> Doesn't look like it
<centrx> There is -bd for "Disable percentage indicator"
<centrx> and -so for "write data to stdout", which would presumably disable other output
<yorickpeterse> hm
<yorickpeterse> also bah, seems this archive it downloads is a directory in a directory
Bertg has joined #ruby-lang
<yorickpeterse> welp, time to repackage that into something sane
<yorickpeterse> Ah, the linux CLI seems to work the same
sarkyniin has quit [Ping timeout: 252 seconds]
malconis has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
ur5us_ has quit [Remote host closed the connection]
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bertg has joined #ruby-lang
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
enebo has quit [Quit: enebo]
seank__ has joined #ruby-lang
enebo has joined #ruby-lang
seank_ has quit [Ping timeout: 246 seconds]
oshosurya has joined #ruby-lang
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enebo has quit [Ping timeout: 252 seconds]
the_other_benn has quit [Ping timeout: 246 seconds]
red_menace has joined #ruby-lang
<oshosurya> for the gsoc project of ruby "Cross-thread Fiber support" , what should its proposal contain ?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<oshosurya> can someone please help me on gsoc project Cross-thread Fiber support
b_hoffman has joined #ruby-lang
wprice has quit [Quit: wprice]
rgb-one has joined #ruby-lang
rgb-one has quit [Remote host closed the connection]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<oshosurya> where should i ask about this project specifically Cross-thread Fiber support?
b_hoffman has quit [Client Quit]
arooni-mobile has joined #ruby-lang
sankaber has joined #ruby-lang
dagda1 has joined #ruby-lang
<yorickpeterse> oshosurya: asking the same question multiple times won't get you an answer faster
<yorickpeterse> oshosurya: if people don't answer that usually means they either didn't see it, or don't know
wallerdev has quit [Quit: wallerdev]
ohsix has joined #ruby-lang
<yorickpeterse> for the proposal, I'd start asking whoever added "Cross-thread fiber support" to the list to begin with
<yorickpeterse> to see what exactly they need, etc
<oshosurya> thanks
seank__ has quit [Ping timeout: 256 seconds]
wprice has joined #ruby-lang
Guest24 is now known as lele
seank_ has joined #ruby-lang
wallerdev has joined #ruby-lang
lytol has quit [Remote host closed the connection]
mshieldsdunn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mshieldsdunn has joined #ruby-lang
mshieldsdunn has quit [Quit: Textual IRC Client: www.textualapp.com]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby-lang
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
JamesDH has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wprice has quit [Quit: wprice]
oshosurya has quit [Quit: Page closed]
martinbmadsen has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
ffmegaman has joined #ruby-lang
guillaume-rb has quit [Quit: guillaume-rb]
fumduq has quit [Ping timeout: 252 seconds]
fumduq has joined #ruby-lang
hiFriends has joined #ruby-lang
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni-mobile has quit [Ping timeout: 246 seconds]
<hiFriends> Hi, Im trying to have the outcome be a .pdf file that I can print or email. Does anyone know of any good pdf generating libraries? I see 3 ways of doing this. 1. create my own pdf and have the program fill it out and save it, 2. have the output of a saved form be a pdf, or 3. fill out a pre existing pdf and save. Im not too sure on the best way to do this. any ideas?
<hiFriends> darix: thanks. Been looking at a lot of things. Im hung up on the pdf DSL vs generator. fwiw this will be in rails
<darix> prawn comes to mind
<darix> Prawn is a fast, tiny, and nimble PDF generator for Ruby
<darix> Prawn Handler for RoR 3.x/4.x projects handles and registers pdf formats
<darix> there are also extensions for more funky stuff
<darix> i am sure you will get started with that.
nofxx has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
JamesDH has joined #ruby-lang
<hiFriends> darix: ok, thanks. I will poke at prawn first. I appreciate the input :D
martinbmadsen has quit [Ping timeout: 265 seconds]
gwendall has quit [Remote host closed the connection]
lytol has joined #ruby-lang
elia has joined #ruby-lang
micmus has quit [Quit: Leaving]
havenwood has joined #ruby-lang
wprice has joined #ruby-lang
sankaber has joined #ruby-lang
ffmegaman has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vipaca has joined #ruby-lang
ender|dkm has quit [Quit: Lost terminal]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spuk has quit [Remote host closed the connection]
spuk has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby-lang
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby-lang
sankaber has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spuk has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Ping timeout: 246 seconds]
lguardiola has quit [Quit: ZNC - http://znc.in]
pwnz0r has joined #ruby-lang
malconis has joined #ruby-lang
stardiviner has quit [Ping timeout: 245 seconds]
havenn has joined #ruby-lang
|jemc| has joined #ruby-lang
havenwood has quit [Ping timeout: 255 seconds]
riotjones has joined #ruby-lang
Iskarlar has joined #ruby-lang
arBmind1 has joined #ruby-lang
crdpink has joined #ruby-lang
riotjones has quit [Ping timeout: 250 seconds]
crdpink2 has quit [Ping timeout: 265 seconds]
arBmind has quit [Ping timeout: 255 seconds]
stardiviner has joined #ruby-lang
Lewix has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
ghostpl_ has joined #ruby-lang
shinnya has joined #ruby-lang
<yorickpeterse> totally non obvious how to get shit like rake-compiler running on Windows
|jemc| has quit [Quit: WeeChat 1.1.1]
<hakunin> apeiros: there isn't a way to dynamically declare kwargs i believe, right?
<apeiros> hakunin: class_eval
<apeiros> you mean to improve performance of Struct.from_hash?
<hakunin> well, class_eval is the last resort
<hakunin> just wanted to do key checks/error raises myself
<hakunin> *not to do
<hakunin> instead let ruby do its normal thing
GBrawl has joined #ruby-lang
<apeiros> you can always write a method to do that
<apeiros> at least that's what I did pre 2.2
GBrawl has quit [Client Quit]
<apeiros> but I don't have an idea to do it dynamically without string based eval
<apeiros> if you find a way, please tell me
mikecmpbll has quit [Quit: ciao.]
<hakunin> apeiros: yeah unlikely there's one
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]