apeiros changed the topic of #ruby-lang to: Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste code on https://gist.github.com
ur5us has joined #ruby-lang
Zenon has quit [Quit: bb]
marr has quit [Ping timeout: 240 seconds]
charliesome_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
skyrocker has quit [Read error: Connection reset by peer]
airdisa has quit []
centrx has joined #ruby-lang
enebo has joined #ruby-lang
aeze has joined #ruby-lang
hudson has joined #ruby-lang
haraoka has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
charliesome has quit [Quit: zzz]
levifig has joined #ruby-lang
monkey- has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
djbkd_ has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
k6 has joined #ruby-lang
<k6> hello, I fail to figure out how to have gsub make replacement across several lines, any pointer?
<k6> I want to match a String that spans across several lines and replace it
duderonomy has quit [Read error: Connection reset by peer]
<bnagy> check out the multiline option when creating your regex
<bnagy> there are a few ways to set it but /blah/m
<k6> bnagy, yes that works well, but the replace only replaces the first line somehow
djbkd_ has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
<centrx> Maybe that's what your regex says to do
<apeiros> k6: then your regex only matches there
sankaber has joined #ruby-lang
monkey- has joined #ruby-lang
yatish27 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
dorei has quit []
delongG has quit [Remote host closed the connection]
aeze has quit [Quit: aeze]
Ropeney has quit [Quit: Leaving...]
rickrobs has joined #ruby-lang
michaeldeol has quit [Ping timeout: 255 seconds]
awea has quit [Remote host closed the connection]
amclain has joined #ruby-lang
wallerdev has quit [Ping timeout: 272 seconds]
b_hoffman has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
dvlwrk has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
aeze has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby-lang
enebo has quit [Quit: enebo]
aeze has quit [Quit: aeze]
htpcs has joined #ruby-lang
aeze has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
levifig has quit [Quit: 444 Server returns no information and closes the connection]
djbkd has quit [Ping timeout: 244 seconds]
hellome has joined #ruby-lang
htpcs is now known as htp
htp has quit []
monkey- has quit [Ping timeout: 246 seconds]
b_hoffman has quit [Quit: b_hoffman]
aeze has quit [Quit: aeze]
CamonZ has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has joined #ruby-lang
pr0ton has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby-lang
hudson has quit [Ping timeout: 246 seconds]
symm- has joined #ruby-lang
duderonomy has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
dvlwrk has joined #ruby-lang
fedexo has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
workmad3 has joined #ruby-lang
revath has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
RobertBirnie has quit [Ping timeout: 272 seconds]
joaomdmoura has joined #ruby-lang
byprdct has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
bb010g has joined #ruby-lang
joaomdmoura has quit [Ping timeout: 240 seconds]
araujo has joined #ruby-lang
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby-lang
shinnya has quit [Ping timeout: 276 seconds]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
michaeldeol has joined #ruby-lang
gix has quit [Ping timeout: 276 seconds]
Musashi007 has joined #ruby-lang
revath has quit [Ping timeout: 255 seconds]
gix has joined #ruby-lang
yatish27 has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
symm- has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Ropeney has joined #ruby-lang
lytol has joined #ruby-lang
alestuber has joined #ruby-lang
aeze has joined #ruby-lang
tsujp has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
revath has joined #ruby-lang
aeze has quit [Ping timeout: 264 seconds]
ledestin has joined #ruby-lang
aeze has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
escapement has joined #ruby-lang
malconis has joined #ruby-lang
revath has quit [Ping timeout: 276 seconds]
Miphix has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aeze has quit [Quit: aeze]
tsujp has quit [Quit: tsujp is snoozing]
cytoskeletor has joined #ruby-lang
cytoskeletor has quit [Client Quit]
ascarter has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
escapement has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd_ has joined #ruby-lang
riotjones has joined #ruby-lang
workmad3 has joined #ruby-lang
riotjones has quit [Ping timeout: 264 seconds]
fujimura has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
fujimura has quit [Remote host closed the connection]
revath has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
aeze has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
_kfpratt has joined #ruby-lang
_kfpratt has quit [Read error: Connection reset by peer]
lytol has quit [Remote host closed the connection]
_kfpratt has joined #ruby-lang
howdoicomputer_ has joined #ruby-lang
pr0ton has joined #ruby-lang
_kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
lele is now known as Guest24
yfeldblu_ has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 245 seconds]
cornerma1 has joined #ruby-lang
hahuang65 has joined #ruby-lang
djbkd_ has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
hahuang65 has quit [Ping timeout: 256 seconds]
fujimura has joined #ruby-lang
fujimura has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
stan_ has joined #ruby-lang
yatish27 has joined #ruby-lang
revath has quit [Ping timeout: 272 seconds]
lytol has joined #ruby-lang
yatish27 has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby-lang
lytol has quit [Ping timeout: 264 seconds]
kfpratt has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby-lang
charliesome has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
nedp has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoulis has quit [Ping timeout: 240 seconds]
pr0ton has quit [Quit: pr0ton]
Musashi007 has quit [Quit: Musashi007]
marr has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
yatish27 has joined #ruby-lang
revath has joined #ruby-lang
charliesome has quit [Quit: zzz]
dzejrou has joined #ruby-lang
lytol has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
solars has joined #ruby-lang
michael_mbp has quit [Excess Flood]
lytol has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby-lang
Ropeney has quit [Quit: Leaving...]
mikecmpbll has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
hackeron has quit [Ping timeout: 276 seconds]
hackeron has joined #ruby-lang
shinnya has joined #ruby-lang
elia has joined #ruby-lang
hhatch has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
gix has joined #ruby-lang
charliesome has joined #ruby-lang
aeze has quit [Quit: aeze]
<yorickpeterse> morning
charliesome has quit [Quit: zzz]
workmad3 has joined #ruby-lang
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby-lang
jds has joined #ruby-lang
arBmind has joined #ruby-lang
ta has quit [Remote host closed the connection]
tsujp has joined #ruby-lang
revath has quit [Ping timeout: 245 seconds]
k3asd` has joined #ruby-lang
workmad3_ has joined #ruby-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
workmad3 has quit [Disconnected by services]
workmad3_ is now known as workmad3
workmad3 has quit [Ping timeout: 265 seconds]
nofxx has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
araujo has quit [Quit: Leaving]
tkuchiki has quit [Ping timeout: 256 seconds]
workmad3_ has joined #ruby-lang
elev has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
yatish27 has joined #ruby-lang
ascarter has joined #ruby-lang
<elev> someone here know how to make a keylogger with ruby?
lytol has joined #ruby-lang
<elev> clear
<elev> exit
elev has quit [Client Quit]
yatish27 has quit [Ping timeout: 244 seconds]
Ropeney_ has joined #ruby-lang
<yorickpeterse> lol
<yorickpeterse> some bro here know how to make spyware with Ruby?
<yorickpeterse> maybe there's an activesupport module for it
Ropeney_ has quit [Client Quit]
Ropeney has joined #ruby-lang
benlovell has joined #ruby-lang
<ljarvis> ActiveKeylogger
lytol has quit [Ping timeout: 256 seconds]
<ljarvis> or wait should that be Action
<ljarvis> how does one decide
<yorickpeterse> Action* is usually for routing/web stuff
<yorickpeterse> "Keylog.ly: beautfiul, handcrafted keyloggers written using Ruby and MongoDB"
<ljarvis> heuheuheu
<ljarvis> webscale keyloggers
workmad3_ is now known as workmad3
elev has joined #ruby-lang
<elev> guys?
<elev> can someone here help me with a quiz?
<apeiros> maybe
<elev> read this
hahuang65 has joined #ruby-lang
<apeiros> I don't see a question in that gist
<elev> yes
<elev> question 1 question 2
<elev> ish
elev has quit [Client Quit]
hahuang65 has quit [Ping timeout: 245 seconds]
<apeiros> karma will so be the next plugin I do…
rbowlby has quit [Remote host closed the connection]
Sivkaumar has joined #ruby-lang
<Sivkaumar> What is flog score?
<Sivkaumar> How this will be calculated?
<apeiros> Sivkaumar: read the docs of the flog gem?
<Sivkaumar> I have analyze my code using rubycritic.
<apeiros> which links right in the readme to flog.
<Sivkaumar> I got several warnings like "method has high flog score"
SylarRuby has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elev has joined #ruby-lang
<elev> someone here who can help me?
revath has joined #ruby-lang
<elev> its havenwood around
<apeiros> elev: not if you part before actually asking the question
<elev> apeiros
<elev> hi
<elev> apeiros I you watched the code?
<apeiros> I've read it.
<elev> it print out the questions on the screen
<elev> then you type something and next question
<elev> I want the answers to come up on screen after the questions
<elev> >apeiros ok?
<apeiros> elev: given your past behavior I'm not willing to help you.
<elev> what?
k3asd` has quit [Quit: leaving]
elev is now known as myspace
<myspace> why
<apeiros> you randomly leave mid question. I have better ways to annoy myself.
<myspace> no no I am sorry
<myspace> but I really need help here
<apeiros> changing nick mid conversation is also not exactly nice IMO.
<myspace> I wanted a new name
<apeiros> well, there's 319 other people here. I'm sure somebody will help you.
<myspace> apeiros please
<myspace> you helped me last time
<myspace> you and havenwood
<myspace> you guys were nice
<myspace> so please man
<myspace> can someone help me with a quiz I made?
<myspace> apriros you and havenwood are only people who help
k3asd` has joined #ruby-lang
<myspace> k3asd?
<k3asd`> myspace: yes?
<myspace> are you good with ruby?
<k3asd`> not yet :)
<myspace> you know basic?
<k3asd`> myspace: yes. I'm actually studying ruby
<myspace> oh ok
<myspace> look at this code
<k3asd`> myspace: I'm not able to help you. I'm sorry
<myspace> ok
_whitelogger has joined #ruby-lang
<myspace> someone here can help me with a quiz?
<k3asd`> myspace: what material are you using for learn ruby?
<toretore> lol
sarkyniin has joined #ruby-lang
<myspace> I use youtube, tutorials, friends and books
<myspace> toretore?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<myspace> 300 people ehre
<myspace> and noone can help me?
workmad3 has quit [Ping timeout: 245 seconds]
<myspace> really?
riotjones has joined #ruby-lang
myspace has quit [Quit: leaving]
iooner has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
elev has joined #ruby-lang
<elev> hello someone here who can help me?
ascarter has joined #ruby-lang
<elev> apeiros
<elev> please
riotjones has quit [Ping timeout: 276 seconds]
<elev> clear
<elev> exit
elev has quit [Client Quit]
tkuchiki_ has quit [Ping timeout: 245 seconds]
<apeiros> what a jumpy person…
elev has joined #ruby-lang
elev is now known as hello1
<hello1> someone on?
<hello1> "hello"
<hello1> someone here?
<apeiros> hello1: stop spamming
<hello1> ok
<hello1> apeiros
<hello1> can you help me now?
<apeiros> you're jumping in and out of channel every 5 seconds - hell no.
<hello1> because noone helps
<hello1> me
<apeiros> no wonder
<hello1> if you just take 1 minute I am done
<hello1> please
mkosaki has quit [Read error: Connection timed out]
<tbuehlmann> hello1, why not just pose your question?
Anonymdoc has joined #ruby-lang
<toretore> why noone help him??
<hello1> ok
fusillicode has joined #ruby-lang
mkosaki has joined #ruby-lang
workmad3 has joined #ruby-lang
<hello1> the question is how can I print the answers to the schreen after the questions
<hello1> like he can get 3 options
<Anonymdoc> stfu hello1
<hello1> sorry
Anonymdoc was kicked from #ruby-lang by apeiros [this language is not welcome]
<tbuehlmann> hello1, inside the each you have the question variable, referencing a question hash from above. so you are able to use question[:answers]
<hello1> the questions.each_with_index
<hello1> ?
allomov has joined #ruby-lang
elev has joined #ruby-lang
hello1 has quit [Quit: Lost terminal]
elev has quit [Client Quit]
<tbuehlmann> yes, inside the loop
<jhass> don't waste your time, they dropped out again
myspace has joined #ruby-lang
<myspace> missclick
<tbuehlmann> oh my
<apeiros> myspace: I'm -->||<--- this close to muting you
<tbuehlmann> I just wrote: yes, inside the loop
<myspace> sorry
<myspace> ok
<apeiros> if you part once more in the middle of your own question or spam the channel, then I will.
<myspace> after the user_input = gets.chomp
<apeiros> myspace: also that stunt with joining under a different nick to attack yourself - do it again and you're banned.
<myspace> ok
<apeiros> not quite sure what you wanted to achieve with that either.
<myspace> tbuehlmann where in the loop should I write it and write what?
<jhass> myspace: also read this, fully and carefully: http://www.catb.org/esr/faqs/smart-questions.html and this: https://workaround.org/getting-help-on-irc
<myspace> page not found jhass
<myspace> jk worked now
<jhass> check if your client messed it up
<tbuehlmann> myspace, just an example: question[:answers].each_with_index { |answer, index| puts "#{index}. #{answer}" }
<tbuehlmann> where you put that is up to you
iooner has joined #ruby-lang
<tbuehlmann> I get to go now. a tip from me: try to be more patient after posing a question, people aren't watching this channel regularly. answers may take some time
<tbuehlmann> have fun you guys
<myspace> ok thanks guys :)
rbowlby has joined #ruby-lang
<apeiros> also not join/part every 5s helps.
<myspace> I know lol
<myspace> I read all the rules now I think I got it. And I will start following them. thanks
Nimf has joined #ruby-lang
<myspace> tbuehlmann: It didnt really work, maybe I put the code wrong but doesnt work.
<bnagy> popcorn.gif
rbowlby has quit [Ping timeout: 252 seconds]
revath has quit [Ping timeout: 264 seconds]
Nimf has quit [Read error: Connection reset by peer]
fujimura has joined #ruby-lang
howdoicomputer_ has quit [Quit: howdoicomputer_]
dorei has joined #ruby-lang
Musashi007 has joined #ruby-lang
haraoka has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 264 seconds]
arBmind has left #ruby-lang [#ruby-lang]
Forgetful_Lion has joined #ruby-lang
ur5us has joined #ruby-lang
<myspace> https://gist.github.com/anonymous/cbee60eb4825615e0762 In this code I made some questions, but I want the answers to come up as options, someone know how
<jhass> you iterate over question[:answers]
gregf_ has quit [Quit: leaving]
fujimura has quit [Remote host closed the connection]
<myspace> where in the code do I write that in jhass?
<jhass> there's only one place where you have question
<bnagy> myspace: this isn't somewhere that does your homework for you
yatish27 has joined #ruby-lang
<myspace> no but like where in the code?
<bnagy> I'd suggest learning how to program computers
<bnagy> with how to IRC as a secondary field of study
<apeiros> myspace: where in your code do you have a variable named `question`?
<myspace> I dont
<myspace> I have questions
lytol has joined #ruby-lang
<myspace> but not only question
<apeiros> myspace: you probably should read your own code again
<myspace> I started with ruby about 8 days ago
<myspace> I am very bad at it lol, just want to make an easy quiz
<jhass> and with reading 9 days ago?
<myspace> lol xd
<apeiros> myspace: you do have a variable named `question` in your code. find it.
yatish27 has quit [Ping timeout: 240 seconds]
<myspace> question: "What is the capital of England?
<myspace> that one?
<apeiros> no, that's part of a hash. it's a symbol.
<myspace> you want me to find somewhere it is xxx = question
fujimura has joined #ruby-lang
<apeiros> variables are on the left side of the assignment
<apeiros> but there's other ways for variables to be defined
<apeiros> for example as arguments to methods or blocks
<apeiros> s/to/of/
<myspace> here?
<myspace> questions.each_with_index do |question, index| print question [:question] user_input = gets.chomp
<ljarvis> woo
lytol has quit [Ping timeout: 256 seconds]
<apeiros> yes
<myspace> where? xD
<myspace> ohhhhhhhhhhhhh find it :D
<apeiros> you tell me
<myspace> questions.each_with_index
<ljarvis> myspace: what happens when you iterate over questions?
<myspace> I dont know
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<ljarvis> you wrote this code?
<myspace> yes
chouhoulis has joined #ruby-lang
<myspace> but my englich man sorry
<ljarvis> so why did you write each_with_index ?
<bnagy> pff
<myspace> that the variable
<myspace> I dont know what iterate mean
<ljarvis> myspace: what's your native language?
<myspace> norwegian
<myspace> and my englich teacher sucks so
<myspace> ljarvis what should I write and were should I write it?
<ljarvis> you see the highlighted code?
<myspace> yea
banister has joined #ruby-lang
<ljarvis> what does it do?
<myspace> it print out every question
<myspace> one after one
<myspace> and gets.chomp means that I need to answer before a new question
<ljarvis> so, what does each_with_index mean?
<myspace> one by one?
<ljarvis> right, you go through the questions one by one and execute the block. Follow me?
<myspace> ok
<ljarvis> so, what's this? |question, index|
<myspace> thats the question I want it to put out
<myspace> 1 by 1
<apeiros> collective patience
<ljarvis> exactly. So now you found question
<myspace> yes
<myspace> :)
<myspace> but what if I want to put the answers in? as options?
<myspace> after the questions
<apeiros> one thing for later: `["Berlin" "Oslo" "London"]` is an array with a single string. you need , to separate items.
<apeiros> same on line 12 & 19
<ljarvis> ^
<myspace> what should I do with line 5 12 and 19?
<ljarvis> add commas to separate items
<myspace> what are the seperate items?
hahuang65 has joined #ruby-lang
<ljarvis> >> ["foo" "bar"]
<eval-in> ljarvis => ["foobar"] (https://eval.in/322069)
<ljarvis> >> ["foo", "bar"]
<eval-in> ljarvis => ["foo", "bar"] (https://eval.in/322070)
<ljarvis> read your code again and find that problem
<myspace> is it a problem?
<myspace> cause my code works now for what I have programmed it to do
<bnagy> ffs
<ljarvis> myspace: ok, then you don't have any more questions?
<jds> Anyone got a good head for timezones? I'm confused by ActiveSupport::TimeZone[3600].at(Time.now.utc).utc_offset # => 7200
<myspace> no I am dont with questions :)
<myspace> I got 3 questions
<ljarvis> ok, ask the first one
<myspace> now I only want the answer to come up after the questions
<jds> AFAICT TimeZone#at ought to be returning times with the same utc offset that you ask for originally - ie I'd expect ActiveSupport::TimeZone[3600].at(Time.now.utc).utc_offset to equal 3600
<ljarvis> question is a hash, so you can access your answers with question[:answers]
<bnagy> jds: ActiveSupport is voodoo
<apeiros> jds: sounds like dst happening
<myspace> where should I put in question[:answers] ?
<apeiros> though dst & tz are two different things and I'm not sure why AS::TZ would do it like that
<myspace> in the question.each_with_index?
<ljarvis> myspace: yes, because that's where your question variable exists
<myspace> afte the gets.chomp
<myspace> ?
<ljarvis> try it
<myspace> nothing really happend
<myspace> the question didnt pup up
hahuang65 has quit [Ping timeout: 256 seconds]
<myspace> here the code
<ljarvis> myspace: explain to me what line 32 does?
<myspace> nothing
<myspace> really
<myspace> do I need to do print?
<ljarvis> so, if it does nothing, why are you expecting something?
<myspace> xD
yatish27 has joined #ruby-lang
<myspace> ok
<myspace> fixed it now
<myspace> and the gets.chomp have to be after
<myspace> :)
<myspace> well ok now I am done with that :)
<ljarvis> well done
SylarRuby has quit [Remote host closed the connection]
<jds> Hm. I guess "ActiveSupport::TimeZone[3600].local(Time.now.to_i).utc_offset" behaves how I'd expect. I'm struggling to figure out the difference between 'at' and 'local' based on the docs, though
<myspace> Thanks so much ljarvis
Sivkaumar has quit [Ping timeout: 246 seconds]
<myspace> yeyeyeyeyeyeyyyeye it worke
<myspace> Its just amazing when you use 2 hours to find something out, and you give up, and then its working
<myspace> thats just amazing :)
myspace has quit [Quit: Lost terminal]
banister has quit [Ping timeout: 265 seconds]
dzejrou has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
gix has quit [Quit: Client exiting]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 264 seconds]
gix has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 272 seconds]
revath has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
x44x45x41x4E has joined #ruby-lang
fusillicode1 has joined #ruby-lang
dellavg_ has joined #ruby-lang
<x44x45x41x4E> I wanna practice Ruby this weekend. I know the basics by completing Codecademy's Ruby course about a year ago. Anyone can suggest a website where I could challenge myself besides Codewars?
fusillicode has quit [Ping timeout: 252 seconds]
mannyt has joined #ruby-lang
benlovell has joined #ruby-lang
sankaber has joined #ruby-lang
AlexAltea has joined #ruby-lang
sgambino has joined #ruby-lang
<jhass> x44x45x41x4E: exercisim.io, projecteuler, rubykoans
<x44x45x41x4E> jhass Thanks! Didn't know about exercism.io
fujimura has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
dzejrou has joined #ruby-lang
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbowlby has quit [Ping timeout: 256 seconds]
imperator has joined #ruby-lang
centrx has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
b_hoffman has joined #ruby-lang
symm- has joined #ruby-lang
kapil___ has joined #ruby-lang
Ropeney has quit [Ping timeout: 240 seconds]
aeze has joined #ruby-lang
lytol has joined #ruby-lang
malconis has joined #ruby-lang
bungoman has joined #ruby-lang
leat2 has quit [Ping timeout: 250 seconds]
x44x45x41x4E has joined #ruby-lang
lytol has quit [Ping timeout: 246 seconds]
marr has quit []
malconis has quit [Remote host closed the connection]
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enebo has joined #ruby-lang
hahuang65 has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
sarkyniin has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 252 seconds]
bungoman has joined #ruby-lang
sarkyniin has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
yatish27 has quit [Remote host closed the connection]
tohsig has joined #ruby-lang
airdisa has joined #ruby-lang
kfpratt has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
ascarter has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
stamina has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
AlxAltea has joined #ruby-lang
workmad3 has joined #ruby-lang
havenwood has joined #ruby-lang
benlovell has joined #ruby-lang
AlexAltea has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
centrx has joined #ruby-lang
|jemc| has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
gwendall has quit [Client Quit]
nedp has quit [Remote host closed the connection]
izzimus has joined #ruby-lang
Musashi007 has quit [Read error: No route to host]
Musashi007 has joined #ruby-lang
malconis has joined #ruby-lang
relix has joined #ruby-lang
sgambino_ has joined #ruby-lang
sgambino_ has quit [Client Quit]
|jemc| has quit [Ping timeout: 265 seconds]
rbowlby has joined #ruby-lang
|jemc| has joined #ruby-lang
revath has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby-lang
rbowlby has quit [Ping timeout: 265 seconds]
lytol has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby-lang
tohsig has quit [Ping timeout: 244 seconds]
lytol has quit [Ping timeout: 256 seconds]
malconis has joined #ruby-lang
benlovell has quit [Quit: Lost terminal]
tohsig has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 244 seconds]
sarkyniin has quit [Ping timeout: 255 seconds]
riotjones has joined #ruby-lang
yatish27 has joined #ruby-lang
riotjones has quit [Ping timeout: 245 seconds]
elia has quit [Quit: Computer has gone to sleep.]
ryba has joined #ruby-lang
ryba is now known as retro
<retro> hello
<jhass> hi
<retro> Any idea where to find splat operator in Ruby source code?
retro is now known as Guest25600
ascarter has joined #ruby-lang
<jhass> somewhere in parse.y I guess
Guest25600 is now known as simi
<simi> I mean the function called when splat is used.
<jhass> yeah, doubt it's a single function
hahuang65 has joined #ruby-lang
<simi> ah
<simi> it's in parse.c
<jhass> splat itself calls to_ary if it exists, do you mean that?
<simi> I'm experimenting with "private attr :a, :b" implementation.
sarkyniin has joined #ruby-lang
<simi> so attr returns array [:a, :b] for me now
<simi> but I need to convert that array into argument list
rcvalle has joined #ruby-lang
<simi> "private *(attr :a, :b)" works now
<ljarvis> private *attr(:foo, :bar)
<ljarvis> didn't think attr returned anything
<jhass> http://rxr.whitequark.org/mri/source/vm_method.c#1268 doubt you can do much about it
<simi> ljarvis, yup
<simi> I added that.
<simi> private *attr :a, :b makes syntax error
<simi> jhass, yup
<simi> I'm there.
hahuang65 has quit [Ping timeout: 256 seconds]
<simi> I'm checking if there's only one array argument.
<simi> And if yes, I want to transform it into argument list.
<simi> My idea is to reuse splat operator functionality there.
<simi> if possible
<jhass> I'd be surprised, splat is syntax and you can't metaprogram syntax
<jhass> else we wouldn't need define_method and such
<simi> i was thinking about splat as function in C code
<jhass> and what would you do if you found it?
<simi> try to use it
<jhass> how?
<jhass> I mean you can't just call arbitrary C functions in the parser (that happens before your code runs) from the ruby land
<simi> sure
<simi> that was just an idea
<simi> now I know it is in parser
<simi> so thanks for the answer
<|jemc|> simi: as jhass mentioned, it calls the to_a method
<|jemc|> so you can try to use that if you really want to
<jhass> well, you still need the * in the call
<jhass> that's what they're trying to get rid of
<|jemc|> >> class Foo; def side_effects; p :SIDE_EFFECTS!; end; def to_a; side_effects; []; end; end; foo = Foo.new; private(*foo, :to_s, :inspect)
<eval-in> |jemc| => :SIDE_EFFECTS! ... (https://eval.in/322123)
<|jemc|> pretty ugly though
<simi> hmm
airdisa has quit [Remote host closed the connection]
dvlwrk has quit [Ping timeout: 265 seconds]
airdisa has joined #ruby-lang
elia has joined #ruby-lang
centrx has quit [Ping timeout: 256 seconds]
lytol has joined #ruby-lang
<simi> Also is there any way how to get element from ruby array in C code?
<simi> without using rb_ary_*
dagda1 has joined #ruby-lang
<|jemc|> why wouldn't you use rb_ary_*?
<simi> maybe RARRAY_AREF?
<simi> |jemc|, I don't want to pretend I'm calling it with argv, argc and stuff.
charliesome has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
alestuber has joined #ruby-lang
atomical has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
delongG has joined #ruby-lang
mikecmpbll has joined #ruby-lang
araujo has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
brixen_ is now known as brixen
Caius has quit [Ping timeout: 276 seconds]
araujo has joined #ruby-lang
araujo has quit [Max SendQ exceeded]
elia has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
centrx has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
Caius has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tsujp_ has joined #ruby-lang
tsujp has quit [Ping timeout: 256 seconds]
tsujp has joined #ruby-lang
dvlwrk has joined #ruby-lang
tsujp_ has quit [Ping timeout: 252 seconds]
__butch__ has joined #ruby-lang
banister has joined #ruby-lang
charliesome has quit [Quit: zzz]
symm- has quit [Ping timeout: 264 seconds]
rbowlby has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
rbowlby has quit [Ping timeout: 245 seconds]
tubbo has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
tubbo is now known as Guest17760
hahuang65 has joined #ruby-lang
stan_ has quit [Ping timeout: 256 seconds]
__butch__ has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b_hoffman has joined #ruby-lang
Guest17760 is now known as tubbo
_djbkd has joined #ruby-lang
elia has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
delongG has quit [Remote host closed the connection]
elia has quit [Client Quit]
dik_dak has joined #ruby-lang
elia has joined #ruby-lang
michaeldeol has joined #ruby-lang
dik_dak has quit [Max SendQ exceeded]
dik_dak has joined #ruby-lang
Mark-6ma has joined #ruby-lang
simi has quit [Ping timeout: 276 seconds]
Musashi007 has quit [Quit: Musashi007]
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
lytol has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
wallerdev has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
malconis has joined #ruby-lang
RobertBirnie has joined #ruby-lang
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby-lang
smoitra has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<smoitra> hello all, I today took a algorithim test in which I failed miserably. I want to improve what books should i study and where can I get practice questions
_djbkd has joined #ruby-lang
dagda1 has joined #ruby-lang
dagda1 has quit [Client Quit]
SylarRuby has joined #ruby-lang
knu has quit [Read error: Connection reset by peer]
SylarRuby has quit [Ping timeout: 256 seconds]
elia has joined #ruby-lang
scampbell has joined #ruby-lang
SylarRuby has joined #ruby-lang
<centrx> smoitra, What areas did you do well on?
elia has quit [Client Quit]
elia has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
stef204 has joined #ruby-lang
<smoitra> webdevelopment and webdesigning
<smoitra> centrx: ^
<centrx> How would those be on an "algorithm" test?
* imperator guesses that was a separate part of the test
allomov has quit [Remote host closed the connection]
airdisa has quit [Remote host closed the connection]
<havenwood> smoitra: What kind of questions were on the test that you struggled with?
* havenwood has never taken an algorithm test.
allomov has joined #ruby-lang
<smoitra> I actually applied for a job and they have this algorithm test
momomomomo has quit [Quit: momomomomo]
<smoitra> there was base negative to inverse question
allomov has quit [Remote host closed the connection]
* imperator sucks at those
<imperator> there are some general algorithm books out there, but i've never read them
<imperator> maybe some of the fine folks here can recommend one or two
<smoitra> I am upset but want to improve.
<smoitra> There was question like I will be given a array of 1s and 0s with base -2 I have to convert it to a decimal number I did that but the 2nd part I have to negate that number and with base -2 I have to convert it to binary form
<pipework> Or aim for places that don't either require that kind of knowledge off-hand or don't have those kinds of problems.
<pipework> I don't personally do whiteboarding, but I'll gladly talk through a problem.
elia has joined #ruby-lang
<smoitra> There were three problem the 1st problem was to find the index of an integer array such that the array can be split into two parts so that one part have contains number x n times and 2nd part dont contains x ntimes
<smoitra> I solved that but I got a poor score of 30 out of 100
Ropeney has quit [Quit: Leaving...]
jacaballero has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alestuber has joined #ruby-lang
<smoitra> 2nd problem was I will be given a array of 1s and 0s with base -2 I have to convert it to a decimal number I did that but the 2nd part I have to negate that number and with base -2 I have to convert it to binary form
<smoitra> 3rd problem i didn't get time to attempt
<smoitra> I was given total 90mins time
joaomdmoura has joined #ruby-lang
michael_mbp has quit [Excess Flood]
alestuber has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
pr0ton has joined #ruby-lang
rbowlby has joined #ruby-lang
michael_mbp has joined #ruby-lang
elia has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
airdisa has joined #ruby-lang
SylarRuby has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
baweaver has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
hahuang65 has joined #ruby-lang
<djellemah> smoitra: 2nd problem is a standard base conversion. Think converting h:m:s to seconds. Works the same way.
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 265 seconds]
<smoitra> I know I think i can do it but lack of time i failed
skade has quit [Quit: Computer has gone to sleep.]
ruby-lang374 has joined #ruby-lang
SylarRuby has joined #ruby-lang
<ruby-lang374> so I used a RegExp in my code to catch if someone puts a letter after a number ex. "5cat" it would ask them to re-enter a number, it worked like a charm yesterday. I leterally just opened it up and re-ran it and it doesnt work, any ideas as to why/
<ruby-lang374> literally* ?*
<apeiros> ruby-lang374: not without code and example input
<apeiros> ruby-lang374: gist.github.com for your reproducible example
__butch__ has joined #ruby-lang
<ruby-lang374> apeiros: any ideas?
<apeiros> ruby-lang374: sorry, was distracted. missing example input/output.
<apeiros> num_1 = gets.chomp.to_f; num_1.to_s # this will never contain [:alpha:]
<apeiros> >> "123hwef".to_f.to_s
<eval-in> apeiros => "123.0" (https://eval.in/322167)
pr0ton has quit [Quit: pr0ton]
elia has quit [Quit: (IRC Client: textualapp.com)]
|jemc| has left #ruby-lang ["WeeChat 1.1.1"]
postmodern has joined #ruby-lang
<ruby-lang374> ok ill see what i can do, just wierd because it worked yesterday. thats my thing how could it work one day over and over again and not the next day
b_hoffman has joined #ruby-lang
brauminski has joined #ruby-lang
<ruby-lang374> apeiros: ok ill see what i can do, just wierd because it worked yesterday. thats my thing how could it work one day over and over again and not the next day
brauminski has quit [Client Quit]
rube-n00b has joined #ruby-lang
ogpastaling has joined #ruby-lang
stef204 has quit [Ping timeout: 264 seconds]
flycatcher has joined #ruby-lang
duderonomy has quit [Ping timeout: 252 seconds]
<ogpastaling> Could someone help to clarify the difference in behavior here?
<ogpastaling> (0..1).inject { |c,i| puts 'hello'} => hello
<ogpastaling> (0..1).inject(0) { |c,i| puts 'hello'} => hello hello
<ogpastaling> I see that If you do not explicitly specify an initial value for memo, then the first element of collection is used as the initial value of memo but I'm still not totally clear on whats going on
airdisa has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 244 seconds]
lytol has joined #ruby-lang
<jhass> exactly that and nothing more
baweaver has quit [Remote host closed the connection]
<jhass> first variant: c=0, i=1, second variant c=0, i=0, c=nil, i=1
cornerma1 has joined #ruby-lang
<jhass> c=nil since puts returns nil
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
lytol has quit [Ping timeout: 246 seconds]
<ogpastaling> Okay, that helps.
<ogpastaling> so as I now understand it, the first element in the collection is really shifted in as the inject argument as apposed to just being 'used' as the inject arg
<jhass> yes
<jhass> you can visualize inject as the block being put between each two elements in the collection
<jhass> the argument to inject is just prepended to the collection
yfeldblum has joined #ruby-lang
<jhass> mh, no, nvm that doesn't help
<djellemah> >> (1..3).inject(0){|sum,x| sum + x}
<eval-in> djellemah => 6 (https://eval.in/322172)
<djellemah> >> (1..3).inject(1){|sum,x| sum + x}
<eval-in> djellemah => 7 (https://eval.in/322173)
<centrx> >> 8
<eval-in> centrx => 8 (https://eval.in/322174)
<djellemah> >> (1..3).inject(3){|sum,x| sum + x}
<eval-in> djellemah => 9 (https://eval.in/322175)
<ljarvis> >> (1..3).inject(:+)
<eval-in> ljarvis => 6 (https://eval.in/322176)
ruby-lang374 has quit [Ping timeout: 246 seconds]
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ogpastaling> Thanks guys, this does help.
ruby-lang710 has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby-lang
ascarter has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruby-lang710 has quit [Ping timeout: 246 seconds]
allomov has joined #ruby-lang
baweaver has joined #ruby-lang
smoitra has quit [Quit: Ex-Chat]
duderonomy has joined #ruby-lang
OnBrokenWings has joined #ruby-lang
imperator has quit [Quit: Leaving]
sarkyniin has joined #ruby-lang
stef204 has joined #ruby-lang
imperator has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
imperator has quit [Client Quit]
kadoppe has quit [Ping timeout: 264 seconds]
_djbkd has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 240 seconds]
imperator has joined #ruby-lang
knu has joined #ruby-lang
kadoppe has joined #ruby-lang
airdisa has joined #ruby-lang
OnBrokenWings has quit [Quit: Leaving]
airdisa_ has joined #ruby-lang
leat2 has joined #ruby-lang
airdisa has quit [Ping timeout: 256 seconds]
_djbkd has joined #ruby-lang
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
bungoman has joined #ruby-lang
airdisa has joined #ruby-lang
airdisa_ has quit [Ping timeout: 265 seconds]
Sirupsen has joined #ruby-lang
Sirupsen has quit [Client Quit]
allomov has quit [Remote host closed the connection]
ahuegyua has joined #ruby-lang
<ahuegyua> .did usa intelligence supply isis with weapons like they did with al-qaeda to justify creating wars?did usa excute the creative mess in the middle east like they said they will, does the creative mess include explosions with uncertain responsibles to create wars?plz, send my qs to help limiting usa & israel aggression against others& may then lessen number of people killed in the middle
<ahuegyua> east..did usa intelligence supply isis with weapons like they did with al-qaeda to justify creating wars?
ahuegyua has left #ruby-lang [#ruby-lang]
Sirupsen has joined #ruby-lang
thelastinuit has joined #ruby-lang
hahuang65 has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> Yes, and they used Ruby to do.
<centrx> do it
delongG has joined #ruby-lang
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
wallerdev has joined #ruby-lang
airdisa has quit [Remote host closed the connection]
delongG has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
_djbkd has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
quintinadam has joined #ruby-lang
_djbkd has joined #ruby-lang
michaeldeol has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
rube-n00b has quit [Ping timeout: 246 seconds]
nertzy has joined #ruby-lang
sankaber has quit [Ping timeout: 256 seconds]
DivineEntity has quit [Ping timeout: 252 seconds]
DivineEntity has joined #ruby-lang
delongG has joined #ruby-lang
allomov has joined #ruby-lang
wallerdev has joined #ruby-lang
momomomomo has joined #ruby-lang
flycatcher has quit [Quit: leaving]
delongG has quit [Remote host closed the connection]
delongG has joined #ruby-lang
flycatcher has joined #ruby-lang
ledestin has joined #ruby-lang
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
tsujp has quit [Quit: tsujp is snoozing]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pr0ton has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
aeze has quit [Ping timeout: 250 seconds]
revath has joined #ruby-lang
airdisa has joined #ruby-lang
relix has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
lytol has joined #ruby-lang
DEac- has quit [Quit: leaving]
yatish27 has quit []
DEac- has joined #ruby-lang
Mark-6ma has quit [Quit: -]
RobertBirnie has joined #ruby-lang
dik_dak_ has joined #ruby-lang
revath has quit [Ping timeout: 264 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
dik_dak has quit [Ping timeout: 240 seconds]
malconis has quit [Ping timeout: 250 seconds]
malconis has joined #ruby-lang
joaomdmoura has joined #ruby-lang
atomical has quit [Ping timeout: 248 seconds]
joaomdmoura has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby-lang
joaomdmoura has joined #ruby-lang
firstdayonthejob has quit [Client Quit]
lytol has quit [Remote host closed the connection]
dik_dak_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pr0ton_ has joined #ruby-lang
dik_dak has joined #ruby-lang
pr0ton has quit [Ping timeout: 264 seconds]
pr0ton_ is now known as pr0ton
bungoman has quit [Remote host closed the connection]
dzejrou has quit [Ping timeout: 276 seconds]
djbkd_ has joined #ruby-lang
_djbkd has quit [Ping timeout: 256 seconds]
__butch__ has quit [Quit: Leaving.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby-lang
sankaber has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby-lang
delongG has quit [Remote host closed the connection]
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
imperator has quit [Quit: Leaving]
micmus has joined #ruby-lang
simi has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joaomdmoura has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joaomdmoura has joined #ruby-lang
lytol has joined #ruby-lang
aeze has joined #ruby-lang
Senjai has quit [Quit: WeeChat 0.4.2]
joaomdmoura has quit [Remote host closed the connection]
Senjai`work has joined #ruby-lang
bantic has joined #ruby-lang
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby-lang
Senjai`work is now known as Senjai
lytol has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
momomomomo has quit [Quit: momomomomo]
tohsig has quit [Quit: Leaving]
pr0ton has quit [Quit: pr0ton]
wallerdev has quit [Quit: wallerdev]
relix has joined #ruby-lang
havenwood has quit []
relix has quit [Client Quit]
workmad3 has joined #ruby-lang
sarkyniin has quit [Ping timeout: 256 seconds]
mannyt has quit [Quit: Connection closed for inactivity]
binfalse has joined #ruby-lang
aeze has quit [Quit: aeze]
dik_dak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arBmind1 has joined #ruby-lang
dik_dak has joined #ruby-lang
dik_dak has quit [Remote host closed the connection]
bantic has quit [Quit: bantic]
sarkyniin has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
bungoman has joined #ruby-lang
<simi> hi
lytol has joined #ruby-lang
k3asd` has quit [Ping timeout: 255 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
malconis has joined #ruby-lang
bungoman has quit [Ping timeout: 256 seconds]
Olipro_ has joined #ruby-lang
Olipro_ is now known as Guest62271
delongG has joined #ruby-lang
ascarter has joined #ruby-lang
SylarRuby has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 256 seconds]
* baweaver waits for question
* baweaver stares intently at simi
<simi> hi
<simi> baweaver,
* baweaver enjoys third person mumbling
<baweaver> So just hi, or something up?
<baweaver> Normally it's better form to just ask the question
<simi> I'm just experimenting with Ruby C source code
<simi> to achieve this
<baweaver> put it in a gist if it's longer than 3 lines.
<simi> sure
<baweaver> otherwise it's impossible to read on channel.
<simi> with this lame code
<simi> I can do this.
<simi> private attr :a, :b
<simi> like a pro TM OOP language
<baweaver> Why though? Don't even need to look at the code to think that might not be the best idea
<baweaver> You can just reference @val internally
<simi> just proof of concept
<baweaver> fair enough
<simi> the main idea is to be able to use "private attr :a, :b" in ruby
<simi> like you can do with methods now
<baweaver> though you can probably just use private attr_accessor :a, :b
<simi> my idea just about private
<baweaver> everything below private in a ruby class is private
<simi> but the goal is to be able to use all modifiers
<baweaver> all modifiers?
<simi> private, protected and public
<simi> and for attr, attr_accessor and their friends
<baweaver> kinda contrived honestly, but it's built in already.
<simi> it is not AFAIK
<simi> recently def returns method name symbol
<simi> so this is similar to that
<simi> but for attrs
<baweaver> everything after the word private in a class is private
<baweaver> including attr methods
<simi> nope
* baweaver sighs
hhatch has quit [Ping timeout: 250 seconds]
<baweaver> have fun with that then
<simi> depends if you use plain "private" or private with arguments
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
<simi> I'm having fun already.
<simi> thanks baweaver
<simi> just an idea
airdisa has quit [Remote host closed the connection]
<simi> but beware
skade has joined #ruby-lang
<simi> modifiers are not affecting code when they are called with arguments
<simi> like public, private or protected
wallerdev has joined #ruby-lang
k3asd` has joined #ruby-lang
wallerdev has quit [Client Quit]
<simi> as you can see here
<simi> baweaver, ^
<simi> modified scope is set only when you're calling scope modifier without arguments
lytol has joined #ruby-lang
quintinadam has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
delongG has quit [Remote host closed the connection]
sunaku has joined #ruby-lang
ogpastaling has quit [Remote host closed the connection]
ogpastaling has joined #ruby-lang
baweaver has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
ascarter_ has joined #ruby-lang
charliesome has joined #ruby-lang
delongG has joined #ruby-lang
ogpastaling has quit [Ping timeout: 250 seconds]
Forgetful_Lion has joined #ruby-lang
banister has joined #ruby-lang
SHyx0rmZ has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby-lang
k3asd` has quit [Ping timeout: 264 seconds]
SHyx0rmZ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
lytol has quit [Remote host closed the connection]
michael_mbp has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
bungoman has joined #ruby-lang
jgpawletko has joined #ruby-lang
delongG has quit [Remote host closed the connection]
sankaber has joined #ruby-lang
aeze has joined #ruby-lang
bungoman has quit [Ping timeout: 272 seconds]
ruby-lang254 has joined #ruby-lang
charliesome has quit [Quit: zzz]
ruby-lang254 has quit [Client Quit]
sarkyniin has quit [Remote host closed the connection]
delongG has joined #ruby-lang
airdisa has joined #ruby-lang
chouhoulis has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby-lang
bungoman has joined #ruby-lang
delongG has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
shutupyeahyoukid has joined #ruby-lang
<shutupyeahyoukid> testing
delongG has joined #ruby-lang
delongG has quit [Remote host closed the connection]
Forgetful_Lion has quit [Remote host closed the connection]
<shutupyeahyoukid> ...?
wallerdev has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shutupyeahyoukid has quit [Ping timeout: 246 seconds]