havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
cdg has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanx has joined #ruby
pilne has joined #ruby
nunchuck has quit [Ping timeout: 240 seconds]
zachk has quit [Quit: night]
mwlang has quit [Quit: mwlang]
DipoleHourglass is now known as nadir
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
cagomez has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
bambanx has quit [Quit: Leaving]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Algebr> and now I am in directory of compiled code, with a .so and .rb, and I did require './unf_ext' but I get LoadError: cannot load such file -- unf_ext.so. The arch is the right one...so...why can't it load?
__Yiota has joined #ruby
bmurt has joined #ruby
<Algebr> okay, I did $: << "." (also what is $:, GEM PATH? LOAD PATH?), and tried using library and got seg fault.
ivanskie has joined #ruby
orbyt_ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
troys is now known as troys_
ramfjord has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
ramfjord has joined #ruby
vee_ has quit [Quit: WeeChat 1.9]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
sp4rrow has joined #ruby
ramfjord has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
marxarelli is now known as marxarelli|afk
ramfjord has quit [Ping timeout: 240 seconds]
imode has joined #ruby
elsevero has joined #ruby
workmad3_ has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore|2 has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
<Algebr> does ruby have an equivalent of python's import pdb; pdb.set_trace()
ramfjord has joined #ruby
Alina-malina has joined #ruby
wald0 has quit [Quit: Lost terminal]
enterprisey has quit [Ping timeout: 240 seconds]
gizmore has quit [Ping timeout: 252 seconds]
<elomatreb> Algebr: You want a debugger? https://github.com/deivid-rodriguez/byebug is the most common one
<Algebr> oh this is nice
<Algebr> thanks!
nankyoku_ has joined #ruby
<Algebr> ' Proper documentation will be eventually written.' lol, software projects
ramfjord has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
raynold has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
enterprisey has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
modlin has joined #ruby
Algebr has quit [Ping timeout: 255 seconds]
arescorpio has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elsevero has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
enko has joined #ruby
elsevero has joined #ruby
enko has quit [Changing host]
enko has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
Conner has joined #ruby
Conner is now known as LockPickingDev
modlin has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
jphase has joined #ruby
tamouse__ has quit [Ping timeout: 248 seconds]
<LockPickingDev> new to Ruby - was curious if anyone could show me how I would do this without global variables (the correct way)? https://gist.github.com/anonymous/066c41ff1aa7e19ecd70e46e4e3bb884
enko has quit [Quit: Textual IRC Client: www.textualapp.com]
<nofxx> LockPickingDev, CITIES = [] , a constant
<nofxx> you may also .freeze in the end, as best practice
jphase has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<LockPickingDev> thanks for your help
kies has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
mim1k has joined #ruby
raynold has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
d^sh has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
jphase has joined #ruby
ramfjord has joined #ruby
jnollette has quit [Ping timeout: 252 seconds]
enterprisey has joined #ruby
nankyokusei has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
nankyok__ has joined #ruby
ramfjord has joined #ruby
nankyoku_ has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 1.9.1]
ramfjord has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
__Yiota has joined #ruby
harai has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
harfangk has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
tamouse__ has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
quobo has quit [Quit: Connection closed for inactivity]
tamouse__ has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
numbdewd has quit [Quit:  ☺ ]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
jphase has joined #ruby
aphprentice has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 252 seconds]
Ouchy`w has quit []
cdg has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
Ouchy`w has joined #ruby
Ouchy has quit [Ping timeout: 246 seconds]
Ouchy has joined #ruby
podlech has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
podlech has quit [Client Quit]
podlech has joined #ruby
podlech has quit [Client Quit]
enterprisey has quit [Remote host closed the connection]
tamouse__ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
ornerymoose has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
Algebr has joined #ruby
Algebr is now known as Guest87067
jphase has joined #ruby
mbr has quit [Ping timeout: 240 seconds]
mbr has joined #ruby
elsevero has quit [Quit: elsevero]
hlmjr has joined #ruby
harai has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
gix has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 252 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
troys_ is now known as troys
Ouchy has quit [Ping timeout: 248 seconds]
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
Ouchy`w has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
kaibro has quit [Ping timeout: 252 seconds]
dviola has joined #ruby
jphase has joined #ruby
wxw has joined #ruby
uZiel has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
wxw has quit [Quit: Leaving]
milardovich has joined #ruby
Cohedrin_ has joined #ruby
s2013 has joined #ruby
jphase has joined #ruby
milardovich has quit [Remote host closed the connection]
mim1k has joined #ruby
arescorpio has quit [Quit: Leaving.]
jphase has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 252 seconds]
milardovich has joined #ruby
jphase has joined #ruby
electrostat_ has joined #ruby
pilne has quit [Quit: Quitting!]
electrostat has quit [Read error: Connection reset by peer]
electrostat_ is now known as electrostat
milardovich has quit [Ping timeout: 248 seconds]
whippythellama_ has quit [Quit: WeeChat 1.4]
jphase has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
jphase has joined #ruby
eckhardt has joined #ruby
troys is now known as troys_
jphase has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jphase has joined #ruby
jamesaxl has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Puffball has quit [Remote host closed the connection]
milardovich has joined #ruby
marxarelli|afk has quit [Ping timeout: 248 seconds]
oleo has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
bigkevmcd has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
jamesaxl has joined #ruby
enko has joined #ruby
enko has quit [Client Quit]
enko has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
harfangk has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
d^sh has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
mkali has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
samlisl_ has quit [Ping timeout: 252 seconds]
harai has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
jameser has quit [Client Quit]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaibro has joined #ruby
A124 has quit [Ping timeout: 240 seconds]
ozcanesen has joined #ruby
ramfjord has joined #ruby
Bock has joined #ruby
ozcanesen has quit [Client Quit]
A124 has joined #ruby
ozcanesen has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
bigkevmcd has quit [Read error: Connection reset by peer]
nocaberi has joined #ruby
bigkevmcd has joined #ruby
Bock has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
harai has joined #ruby
Dimik has joined #ruby
rippa has joined #ruby
LockPickingDev has quit [Quit: Leaving]
harai has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
govg has joined #ruby
aupadhye has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
anisha has joined #ruby
_whitelogger has joined #ruby
harai has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
jphase has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
jameser has joined #ruby
milardovich has joined #ruby
troys_ is now known as troys
jenrzzz has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
ldepandis has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
MrBismuth has joined #ruby
jphase has joined #ruby
MrBusiness has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
jameser has quit [Ping timeout: 248 seconds]
cschnei__ has joined #ruby
troys has quit [Quit: Bye]
jameser has joined #ruby
imode has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
cschnei__ has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
dviola has quit [Quit: WeeChat 1.9.1]
jphase has quit [Ping timeout: 248 seconds]
naprimer2 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
naprimer has quit [Ping timeout: 248 seconds]
Puffball has joined #ruby
InfinityFye has joined #ruby
ShekharReddy has joined #ruby
jphase has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
ldepandis has quit [Ping timeout: 240 seconds]
shime has joined #ruby
shime has quit [Client Quit]
andikr has joined #ruby
Silthias1 has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
Silthias has quit [Ping timeout: 252 seconds]
milardovich has joined #ruby
conta has joined #ruby
raynold has joined #ruby
jphase has joined #ruby
nankyokusei has joined #ruby
shime has joined #ruby
enterprisey has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 246 seconds]
marr has joined #ruby
nankyok__ has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
jnollette has joined #ruby
harfangk has quit [Ping timeout: 264 seconds]
harfangk has joined #ruby
jphase has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
huyderman has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
huyderman has joined #ruby
d5sx43 has joined #ruby
jphase has joined #ruby
govg has joined #ruby
jxv has joined #ruby
aupadhye has joined #ruby
d5sx43 has quit [Remote host closed the connection]
nobitanobi has joined #ruby
TomyWork has joined #ruby
lacuna has joined #ruby
ta_ has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
enko has quit [Ping timeout: 248 seconds]
avelldiroll has quit [Quit: WeeChat 1.6]
mark_66 has joined #ruby
avelldiroll has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
jnollette_ has joined #ruby
jnollette has quit [Quit: All your IRC are belong to ZNC]
jnollette_ has quit [Client Quit]
jnollette has joined #ruby
snickers has joined #ruby
claudiuinberlin has joined #ruby
Guest87067 has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 246 seconds]
jinie has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
lxsameer has joined #ruby
jphase has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
ur5us has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
Ouchy`w has joined #ruby
jphase has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
im0nde has joined #ruby
aufi has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ts_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
claudiuinberlin has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 246 seconds]
elsevero has joined #ruby
elsevero has quit [Client Quit]
jphase has joined #ruby
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 252 seconds]
shime has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
ldepandis has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
jphase has quit [Ping timeout: 248 seconds]
bigkevmcd has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sp4rrow has quit [Client Quit]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
jphase has joined #ruby
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
mim1k has joined #ruby
ldepandis has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drptbl has joined #ruby
ldepandis has quit [Client Quit]
ldepandis has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
harfangk has quit [Ping timeout: 240 seconds]
<dionysus69> hello everyone
<dionysus69> i have a object initialization but I have no idea where the lib for it is
<dionysus69> Antpool::API.new for example, there's no gem that would be including it or any lib files that contain the class definition
claudiuinberlin has joined #ruby
jphase has joined #ruby
tvw has joined #ruby
<teatime> dionysus69: can try Antpool::API.method(:new).source_location ?
<dionysus69> I did try that yesterday
<dionysus69> says nil
ldepandis has quit [Ping timeout: 255 seconds]
<Burgestrand> It's likely because `new` is typically defined in C and inherited
<dionysus69> so is there way to track where that is coming from?
<matthewd> One of the instance methods might have more luck
<Burgestrand> dionysus69 Try one of the instance methods instead, like matthewd said
nobitanobi has joined #ruby
<dionysus69> hmm ok I'll try :)
<Burgestrand> dionysus69 Another way is to inspect `$LOADED_FEATURES` and see if you can find something that looks suspicious
<Burgestrand> If all that fails, I believe you could possibly use the Tracepoint API to hook in to when the module gets defined
ldepandis has joined #ruby
<dionysus69> `$LOADED_FEATURES` returns empty string
<Burgestrand> dionysus69 it should contain an array of strings, what version of ruby are you using and are you positive that you typed it correctly?
<dionysus69> btw are any of you into cryptocurrency? looking for bitcoin core ruby implementation
<dionysus69> ye I just did `$LOADED_FEATURES` I have 2.4.1
<Burgestrand> >> $LOADED_FEATURES
<ruby[bot]> Burgestrand: # => ["enumerator.so", "thread.rb", "rational.so", "complex.so", "/execpad/interpreters/ruby-2.3.0/lib/ru ...check link for more (https://eval.in/868218)
jphase has quit [Ping timeout: 252 seconds]
<dionysus69> ok I thought by `` you meant bash call
<Burgestrand> :)
<dionysus69> Antpool::API.methods.each { |m| puts Antpool::API.method(m).source_location }
<dionysus69> only outputs rails related locations, nothing external
<dionysus69> weird
<matthewd> dionysus69: Are you confused about the source of the entire Antpool::* namespace, or just 'API'?
jphase has joined #ruby
<dionysus69> just entire Antpool class
<dionysus69> it has to be defined somewhere in order for me initialize it right
<dionysus69> ok I ll post the location when I find it :D
<Burgestrand> Pry might be helpful, by the way, it has a `show-source` command that allows you to target a module and I guess it pretty much looks up everything in it
<matthewd> $LOADED_FEATURES.grep(/ant/i)
tvw has quit [Remote host closed the connection]
<matthewd> git grep -i ant Gemfile
<matthewd> And then failing either of those, just pore over `git grep Antpool`
sekmo has joined #ruby
<matthewd> Oh, you were looking at other class methods
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> Antpool::API.instance_methods.each { |m| puts Antpool::API.instance_method(m).source_location }
jaruga has joined #ruby
phaul has joined #ruby
jphase has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
jhass has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
jphase has joined #ruby
jhass has joined #ruby
kassav_ has joined #ruby
ldepandis is now known as ldepandis|away
jphase has quit [Ping timeout: 248 seconds]
<dionysus69> matthewd: thanks allot
<dionysus69> just discovered strange thing
<dionysus69> git grep Antpool > app/lib/antpool/api.rb:module Antpool
<dionysus69> there's no such dir though in lib
DTZUZO has quit [Ping timeout: 246 seconds]
ldepandis|away has quit [Ping timeout: 264 seconds]
nankyoku_ has joined #ruby
jphase has joined #ruby
cschneid_ has joined #ruby
ts_ has quit [Ping timeout: 248 seconds]
ts_ has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
<dionysus69> ok found it
<matthewd> That's app/lib
<dionysus69> I was looking at root/lib stupid me
<dionysus69> never heard of anyone using app/lib before now
cschneid_ has quit [Ping timeout: 255 seconds]
ams__ has joined #ruby
dronov has joined #ruby
dronov has quit [Client Quit]
ldepandis has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
tvw has joined #ruby
t-recx has joined #ruby
quobo has joined #ruby
mkali has quit [Quit: mkali]
ramfjord has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ruby
mkali has joined #ruby
mkali has quit [Client Quit]
sekmo has quit [Read error: Connection reset by peer]
ldepandis has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
wald0 has joined #ruby
ts_ has quit [Ping timeout: 260 seconds]
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has joined #ruby
sagax has quit [Client Quit]
sagax has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
ldepandis has joined #ruby
rafadc has joined #ruby
selim has quit [Ping timeout: 252 seconds]
tcopeland has quit [Quit: tcopeland]
selim has joined #ruby
dextrey has joined #ruby
apparition has joined #ruby
ldepandis has quit [Read error: Connection reset by peer]
phaul has quit [Ping timeout: 248 seconds]
InfinityFye has quit [Ping timeout: 240 seconds]
InfinityFye has joined #ruby
Qchmqs__ has joined #ruby
Qchmqs__ is now known as Qchmqs
clemens3 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LazerCat has joined #ruby
woodruffw has quit [Ping timeout: 260 seconds]
raynold has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
InfinityFye has quit [Read error: Connection reset by peer]
bhator3 has joined #ruby
<bhator3> Hi ! My name is Siddharth Bhatore. I am a research student at IIIT Hyderabad. I am using Ruby in my Rails application for 3 years. Now, I want to contribute back to the community. Can someone get me started ?
<bhator3> Thank you so much marahin. Any other tips ?
<bhator3> And I want to contribute to ruby. Thanks.
<marahin> Ah, sorry, I have both channels next to each other :) and I've seen "Rails" in your message, that's why I assumed you mean Rails. Sorry!
<bhator3> Ok. So any tips on contributing to ruby ?
<marahin> bhator3: https://github.com/ruby/ruby/blob/trunk/CONTRIBUTING.md this would suit you I believe :)
<bhator3> I have contributed to rails before.
<bhator3> marahin
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j0rdj0rd_ has joined #ruby
Qchmqs__ has joined #ruby
j0rdj0rd has quit [Ping timeout: 252 seconds]
claudiuinberlin has joined #ruby
Qchmqs has quit [Ping timeout: 260 seconds]
anisha_ has joined #ruby
anisha has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
ramfjord has joined #ruby
<bhator3> Is this the link to track bugs in ruby ?
<bhator3> Also its great to see japanese spilled all over.
drptbl has quit [Quit: See you later!]
tcopeland has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
dminuoso has quit [Changing host]
dminuoso has joined #ruby
ocn has joined #ruby
bauruine has quit [Remote host closed the connection]
ocn has left #ruby [#ruby]
bauruine has joined #ruby
<leah2> !/go xb
bruno- has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
milardovich has joined #ruby
synthroid has joined #ruby
mikecmpb_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 252 seconds]
rafadc has joined #ruby
dextrey has quit [Quit: WeeChat 1.9]
dextrey has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
Burgestrand has quit [Quit: Closing time!]
corezero has joined #ruby
__Yiota has joined #ruby
andikr has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
kapil___ has joined #ruby
rafadc_ has joined #ruby
s2013 has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
rafadc has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
dextrey has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
kassav_ has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
Burgestrand has joined #ruby
bronson has quit [Remote host closed the connection]
Qchmqs__ is now known as Qchmqs
workmad3 has joined #ruby
milardovich has joined #ruby
griffindy has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
Mayur has joined #ruby
shinnya has joined #ruby
gnufied has joined #ruby
milardovich has joined #ruby
cdg has joined #ruby
orbyt_ has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
Mayur has quit [Quit: Page closed]
rafadc_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition has quit [Quit: Bye]
duckpupp1 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
corezero has quit [Read error: Connection reset by peer]
bhator3 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tamouse__ has quit [Ping timeout: 248 seconds]
DLSteve_ has joined #ruby
jordanm has quit [Remote host closed the connection]
coreteam has joined #ruby
coreteam has quit [Max SendQ exceeded]
Xiti` has joined #ruby
bmurt has joined #ruby
jordanm has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
Xiti has quit [Ping timeout: 248 seconds]
tamouse__ has joined #ruby
banisterfiend has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
oleo has joined #ruby
chouhoulis has joined #ruby
claudiuinberlin has joined #ruby
Siyfion has joined #ruby
tamouse__ has quit [Ping timeout: 248 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rafadc has joined #ruby
synthroid has quit [Remote host closed the connection]
griffindy has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ishido has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
synthroid has joined #ruby
bmurt has joined #ruby
uZiel has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
mson has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
polishdub has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Client Quit]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
ShalokShalom_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
bmurt has joined #ruby
dionysus69 has joined #ruby
ShalokShalom has quit [Ping timeout: 252 seconds]
Rapture has joined #ruby
workmad3 has joined #ruby
bmurt has quit [Client Quit]
nobitanobi has quit [Remote host closed the connection]
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
rafadc has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
yeticry_ has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
samlisl_ has joined #ruby
theunraveler has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
dinfuehr has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
dinfuehr has joined #ruby
mkroman has quit [Read error: Connection reset by peer]
mkroman has joined #ruby
NicolasHov has joined #ruby
rabajaj has quit [Quit: Leaving]
apparition has joined #ruby
dachi has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
chouhoul_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dachi> hello. could you help me with passing hash as argument that should as "outer" params? let's say we call t("something", var1: "val1", var2: "val2"). let's say I have h={var1: "val1"}. How can I pass h? t("something", h).
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
<dminuoso> dachi, have you tried.. maybe exactly that?
bronson has joined #ruby
<dminuoso> dachi, the thing you have to know, is that Ruby has some automagic when it comes to hashes and kwargs.
<dminuoso> t("something", var1: "val1", var2: "val2") is actually just short for t("something", { var1: "val1", var2: "val2" }) (this is not entirely accurate, but it'll work for now)
snickers has quit [Ping timeout: 240 seconds]
<dachi> ok thanks a lot
nobitanobi has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
<teatime> dachi: if however you want to mix keyword args & a hash of more keyword args, google for the splat operator **
im0nde has quit [Quit: im0nde]
morfin has joined #ruby
<morfin> hello
Qchmqs has quit [Quit: Konversation terminated!]
<morfin> i forgot - only way to call method is using obj.send(:method_name)?
<dminuoso> If you ever use .send its probably wrong.
<dminuoso> If you need dynamic dispatch, use .public_send
<dminuoso> .send should only be used when you want to purposefully break encapsulation.
centrx has joined #ruby
John__ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
synthroid has quit [Remote host closed the connection]
NicolasHov has left #ruby ["WeeChat 1.7"]
<morfin> hah it can call protected/private things as i remember)
apparition has quit [Quit: Bye]
<morfin> and totally break encapsulation
apparition has joined #ruby
synthroid has joined #ruby
sp4rrow has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
NicolasHov has joined #ruby
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
claudiuinberlin has joined #ruby
Serpent7776 has quit [Quit: Leaving]
<dminuoso> morfin, that being said, Im a hypocrite because before I used autocomplete, I cba to type out public_send all the time. ;p
sepp2k1 has joined #ruby
sepp2k has quit [Disconnected by services]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Ping timeout: 240 seconds]
rawste has joined #ruby
r3QuiEm_cL has joined #ruby
NicolasHov has quit [Quit: WeeChat 1.7]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 240 seconds]
yeticry_ has quit [Ping timeout: 264 seconds]
apparition has quit [Quit: Bye]
yeticry has joined #ruby
claudiuinberlin has joined #ruby
TomyLobo has joined #ruby
aufi has quit [Quit: Leaving]
fyrril has joined #ruby
sepp2k has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang007 has joined #ruby
orbyt_ has joined #ruby
<ruby-lang007> Hi I'm trying to make gtk3 native apps with Ruby. Any tips or resources? I've searched and I didn't find much.
Guest24 has joined #ruby
aubyoub has joined #ruby
ElDoggo has joined #ruby
cagomez has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest24 has quit [Client Quit]
phaul has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
workmad3 has quit [Ping timeout: 248 seconds]
Guest24 has joined #ruby
Guest24 has left #ruby [#ruby]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
mikecmpbll has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
nadir has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest24 has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
DTZUZU has joined #ruby
raynold has joined #ruby
dviola has joined #ruby
<dminuoso> ruby-lang007, that's because Ruby is rarely if ever used natively in combination with graphical frontends.
bronson has joined #ruby
<dminuoso> ruby-lang007, either do it the other way around (for example using mruby inside your C++ application), use some communication (sockets, pipelines, message queues) method between a ruby program and the frontend, or -> and that's how most seem to do it -> avoid GTK3 and provide webcontent instead.
coreteam has joined #ruby
coreteam has left #ruby ["Leaving"]
rawste has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
r3QuiEm_cL has joined #ruby
r3QuiEm_cL has quit [Client Quit]
hahuang65 has quit [Ping timeout: 248 seconds]
marxarelli has joined #ruby
minimalism has joined #ruby
ruby-lang007 has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 240 seconds]
lacuna has joined #ruby
dachi has quit [Ping timeout: 260 seconds]
tolerablyjake has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
r3QuiEm_cL has joined #ruby
voodoofish430 has joined #ruby
r3QuiEm_cL has quit [Client Quit]
jphase has quit []
orbyt_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
<darix> *shrug*
lacuna has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: WeeChat 1.7]
lxsameer has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
* teatime lols slightly at "utf8=✓"
Toledo is now known as croberts
jphase has joined #ruby
croberts is now known as Toledo
eckhardt has joined #ruby
<morfin> it's because of crap called IE
lxsameer has quit [Ping timeout: 240 seconds]
<Zarthus> ruby programmers using IE should just be purged though
* teatime googles it... neat workaround.
wald0 has quit [Quit: Lost terminal]
mark_66 has quit [Remote host closed the connection]
ShalokShalom_ is now known as ShalokShalom
lagweezle_away is now known as lagweezle
d5sx43 has joined #ruby
Neptu has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
skweek has joined #ruby
voice_ftp has quit [Remote host closed the connection]
voice_ftp has joined #ruby
s2013 has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
SeepingN has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
uZiel has quit [Remote host closed the connection]
armyriad has joined #ruby
d5sx43 has quit [Quit: Leaving...]
uZiel has joined #ruby
chouhoulis has joined #ruby
vee_ has joined #ruby
nobitanobi has quit [Remote host closed the connection]
kies has joined #ruby
blindMoe has quit [Quit: Yeap]
<dminuoso> darix, ah well - was not aware this existed.
Cohedrin_ has joined #ruby
kies has quit [Ping timeout: 240 seconds]
<morfin> well, rails utf8=✓ appeared because of IE
<morfin> as i know
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
poofjavelin has joined #ruby
dionysus69 has joined #ruby
ruby618 has joined #ruby
charliesome has quit [Client Quit]
phaul has quit [Ping timeout: 248 seconds]
zachk has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
hahuang65 has joined #ruby
workmad3 has joined #ruby
uZiel has quit [Remote host closed the connection]
hahuang65 has quit [Client Quit]
enterprisey has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
troys has joined #ruby
jphase has quit []
jamesst20 has joined #ruby
milardovich has quit [Remote host closed the connection]
nobitanobi has joined #ruby
__Yiota has joined #ruby
opekktar has joined #ruby
nobitanobi has quit [Remote host closed the connection]
uZiel has joined #ruby
jphase has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
sepp2k has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
tvw has quit [Remote host closed the connection]
PaulCapestany has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
opekktar has quit [Quit: WeeChat 1.9]
milardovich has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
claudiuinberlin has joined #ruby
PaulCapestany has joined #ruby
jacm93 has joined #ruby
jamesst20 has quit [Ping timeout: 260 seconds]
brent__ has quit [Client Quit]
jacm93 has quit [Client Quit]
milardovich has quit [Ping timeout: 252 seconds]
brent__ has joined #ruby
orbyt_ has joined #ruby
bronson has quit [Remote host closed the connection]
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElDoggo has quit [Ping timeout: 248 seconds]
Guest87067 has joined #ruby
troys is now known as troys_
bambanx has joined #ruby
hahuang65 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
mikecmpbll has joined #ruby
lxsameer has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
milardovich has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
centrx has quit []
jamesst20 has joined #ruby
uZiel has joined #ruby
enterprisey has quit [Remote host closed the connection]
sp4rrow has joined #ruby
dcluna has quit [Ping timeout: 264 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tolerablyjake has joined #ruby
dcluna has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
conta1 has joined #ruby
tolerablyjake has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
kies has joined #ruby
jenrzzz has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta1 has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
cschneid_ has joined #ruby
nocaberi has quit [Ping timeout: 240 seconds]
tamouse__ has joined #ruby
workmad3 has joined #ruby
cdg has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jamesaxl has quit [Read error: Connection reset by peer]
kapil___ has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
jinie has joined #ruby
jamesaxl has joined #ruby
mjolnird has quit [Remote host closed the connection]
mjolnird has joined #ruby
uZiel has quit [Remote host closed the connection]
Dimik has joined #ruby
workmad3 has joined #ruby
FrostCandy has joined #ruby
ElDoggo has joined #ruby
<FrostCandy> If I have array = [], I can create a new key with array['newkey'] = thing. How can I say array['newkey']['new_inner_thing'] = thing ?
Guest24 has quit [Read error: Connection reset by peer]
<FrostCandy> Basically i'm trying to add an array to a dynamically created key in the main array.
ged has quit [Read error: Connection reset by peer]
sp4rrow has joined #ruby
harai has quit [Ping timeout: 248 seconds]
Neptu has joined #ruby
mahlon has quit [Read error: Connection reset by peer]
<FrostCandy> myarray['newkey'][:fields] = fieldarray should work
jamesaxl has quit [Read error: Connection reset by peer]
uZiel has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 252 seconds]
rafadc has joined #ruby
jamesaxl has joined #ruby
tgragnato has joined #ruby
rabajaj has joined #ruby
ta_ has joined #ruby
Guest87067 is now known as Algebr
<tobiasvl> FrostCandy: just the same way?
<tobiasvl> array['newkey'] = []
<tobiasvl> but what are array string indices...
<FrostCandy> tobiasvl: yup im so stupid, I wanted to add another key, so i needed a hash instead of an array - array['newkey'] = {:field => "thing"}
<FrostCandy> too old for programming :D lol
<matthewd> If you're using 'newkey', then "array" isn't an array either
<FrostCandy> right it's also a hash, too used to associative arrays i guess
uZiel has quit [Ping timeout: 248 seconds]
Slinky_Pete has joined #ruby
jamesst20 has quit [Quit: No answer received, but problem solved]
oetjenj has joined #ruby
jc-guy has joined #ruby
rafadc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jc-guy> Can anyone tell me what the non def blocks are in a ruby class?
<jc-guy> example:
noobineer has quit [Ping timeout: 248 seconds]
<jc-guy> oops mt ^^
govg has quit [Ping timeout: 248 seconds]
<tobiasvl> they're blocks
<tobiasvl> that is literally what they're called ;P
troys_ is now known as troys
charliesome has joined #ruby
tgragnato has quit [Read error: Connection reset by peer]
<jc-guy> are they used to overwrite/monkey patch methods declared in an interface/parent ?
jamesaxl has quit [Read error: Connection reset by peer]
synthroid has quit [Remote host closed the connection]
jamesaxl has joined #ruby
frojnd has joined #ruby
<frojnd> Hi there
skweek has quit [Ping timeout: 240 seconds]
<havenwood> frojnd: hi
<frojnd> How can I define class "Something" and methhod "sum" so this `Something.new(100).sum` call will work when I call it in console? Better yet what should I read in order to understand argument call upon .new and after that call of method?
<havenwood> frojnd: What should your example return?
tvw has joined #ruby
goyox86__ has joined #ruby
<frojnd> sum of first 100 numbers... it's not how i implement this sum of first 100 numbers but the structure of the class and methods
goyox86__ has quit [Client Quit]
goyox86_ has joined #ruby
<havenwood> frojnd: You can change the #sum method in this code: https://gist.github.com/havenwood/676f8c204b10dda1b40729c2dc718750
goyox86_ has quit [Read error: Connection reset by peer]
goyox86_ has joined #ruby
cagomez has quit [Remote host closed the connection]
aubyoub has quit [Quit: Leaving]
<frojnd> Ok I see, thank you havenwood
synthroid has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
tolerablyjake has joined #ruby
s3nd1v0g1us has joined #ruby
ruby618 has quit [Ping timeout: 260 seconds]
biberu has quit []
morfin has quit []
AndBobsYourUncle has joined #ruby
Danielss89 has joined #ruby
tvw has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
dwn has joined #ruby
jaruga has quit [Quit: jaruga]
<dwn> so I'm trynna ingest IP ranges in a user-friendly way, so that you don't need to know CIDR well: 10.0.*.1 is 255 addresses with that octet changing. 10.0.*.* is == 10.0.0.0/16. maybe also syntax like 10.0.50-100.1 for only those 50 IPs. is there a lib that handles this and doing comparisons already?
nobitanobi has joined #ruby
Ouchy has quit [Ping timeout: 246 seconds]
<havenwood> dwn: Check IPAddr in the stdlib.
<dwn> yeah it doesn't
<dwn> netaddr::cidr looks good too -- but only for cidr
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
Ouchy`w has quit [Ping timeout: 248 seconds]
Ouchy`w has joined #ruby
nobitanobi has quit [Ping timeout: 248 seconds]
goyox86_ has quit [Quit: goyox86_]
goyox86_ has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
<adam12> dwn: If you find anything that supports that, I'd be very surprised.
<dwn> do you mean in ruby? plenty of things outside will parse that in a user friendly way
ta_ has quit [Remote host closed the connection]
<lupine> urgh
<dwn> I'm thinking I'll just build wildcard/x-y support on top of netaddr::cidr
<lupine> that is the nastiest format I've seen for IPs for a while
<lupine> don't forget ipv6 support btw
r3QuiEm_cL has joined #ruby
<dwn> meh
<dwn> nmap does it fine
rafadc has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
rafadc has quit [Ping timeout: 240 seconds]
vee_ has quit [Quit: WeeChat 1.9.1]
<jc-guy> so I guess I’m a little confused on how ruby blocks are working. I see blocks being used all the time in ruby classes where no def is used. Although when I play around with the language and try that i get a “no method” error
goyox86_ has quit [Quit: goyox86_]
goyox86_ has joined #ruby
bambanx has quit [Quit: Leaving]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> jc-guy: You're presumably seeing calls to methods that were defined elsewhere
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
<tobiasvl> jc-guy: can you gist some of the code that's confusing you?
<tobiasvl> not sure if you're seeing blocks or what you are seeing
__Yiota has joined #ruby
erlend has quit [Read error: Connection reset by peer]
<clemens3> [ 1, 2, 3 ].each { |n| puts n } gives a code block to the each method.. is totally basic concept in ruby, maybe you just have to get used to it..
nowhere_man has joined #ruby
<tobiasvl> I guess maybe I misunderstood you earlier, and you weren't talking about blocks at all
nobitanobi has joined #ruby
orbyt_ has joined #ruby
erlend has joined #ruby
synthroid has quit [Remote host closed the connection]
<jc-guy> ok so one example I see on a file is someone using Sidekiq and using a `sidekiq_retries_exhausted do |msg, e| end`
<tobiasvl> oh, ok. that is a block.
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<tobiasvl> the `do |msg, e| ... end` part is a block
<matthewd> jc-guy: Yes, that's calling the sidekiq_retries_exhausted method, which is (I assume) defined by sidekiq
sp4rrow has joined #ruby
nobitanobi has quit [Remote host closed the connection]
goyox86_ has quit [Quit: goyox86_]
<clemens3> jc-guy: there are methods that expect a code block... inside that method, some values are so called yielded to that code block..
goyox86_ has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
<jc-guy> ok so i assume that is coming from a module. Now is that method call executed upon instantiation?
<clemens3> most classical example are the iterator methods.. as said, each.. map.. have a look at the docu for array and how you invoke those methods with a code block.. if the method doesnt expect a code block, than you get an error i guess.. it is much less often that you write a method yourself that expects a code block maybe..
s3nd1v0g1us has quit [Quit: tempusfugit]
sp4rrow has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
<clemens3> that depends on your program entrance..
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
<clemens3> i don't know anything about sidekiq what it does etc.
<matthewd> The method call is executed when it's encountered, while loading the class definition
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
<matthewd> jc-guy: run_block is defined on instances of MyClass, but is being called on the class object itself
theunrav_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theunraveler has quit [Ping timeout: 246 seconds]
__Yiota has quit [Max SendQ exceeded]
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has joined #ruby
__Yiota has joined #ruby
<matthewd> jc-guy: Contrast `extend MyModule`
<clemens3> the code is executed top to button, but first module is just definition, but second run_block is indead then executed..
Dimik has quit [Ping timeout: 252 seconds]
troys is now known as troys_
workmad3 has joined #ruby
charliesome has joined #ruby
<jc-guy> ok. Thanks for clearing some things up for me
anisha_ has quit [Quit: This computer has gone to sleep]
anisha_ has joined #ruby
anisha_ has quit [Client Quit]
millerti has joined #ruby
andygeorge has joined #ruby
cagomez has joined #ruby
goyox86_ has quit [Quit: goyox86_]
rafadc has joined #ruby
rafadc has quit [Client Quit]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soahccc has quit [Quit: Cya]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jc-guy has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 248 seconds]
goyox86_ has joined #ruby
tvw has joined #ruby
hahuang65 has joined #ruby
workmad3 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alina-malina has quit [Ping timeout: 252 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
Alina-malina has joined #ruby
claudiuinberlin has joined #ruby
rabajaj has quit [Quit: Leaving]
enko has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
ged has joined #ruby
cdg has joined #ruby
poofjavelin has quit [Quit: Leaving]
nobitanobi has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
mahlon has joined #ruby
moei has joined #ruby
nobitanobi has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nertzy3 has quit [Read error: No route to host]
r3QuiEm_cL has quit [Quit: Textual IRC Client: www.textualapp.com]
<Algebr> I see that `bundle install --local` exists, but for my usage of --local, I want it to first look in vendor/cache and if the gem is not there then hit up rubygems.org, but it seems that its an all or nothing thing
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
hlmjr has quit [Read error: Connection reset by peer]
herbmillerjr has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
mkroman has quit [Ping timeout: 248 seconds]
<havenwood> Algebr: You can point the Gemfile to whatever location you'd like.
<havenwood> On a gem-by-gem basis.
kus_ubuntui686 has joined #ruby
<Algebr> with :path => 'foo/bar' right?
Alina-malina has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
mkroman has joined #ruby
FrostCandy has quit []
sagax has quit [Ping timeout: 252 seconds]
snath has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
snath has left #ruby [#ruby]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Algebr: yup
<Algebr> so I have a directory where the .gem file is at for a gem dependency, and doing :path => '.' since the gem is in the same directory but still get could not find in sources =/
<Algebr> when I use bundle install
<Algebr> ./ as well
marxarelli is now known as marxarelli|afk
<Algebr> (tried absolute path as well)
mim1k has joined #ruby
Ishido has quit [Remote host closed the connection]
eckhardt has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mim1k has quit [Ping timeout: 240 seconds]
mkroman has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
nankyoku_ has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
troys_ is now known as troys
<Algebr> ugh, ruby crossplatform bundling is nightmare =/
<Algebr> for me
nankyokusei has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has quit [Quit: Connection closed for inactivity]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
harai has joined #ruby
tcopeland has quit [Quit: tcopeland]
workmad3 has joined #ruby
nofxx has quit [Remote host closed the connection]
eckhardt has joined #ruby
iszak has quit [Ping timeout: 252 seconds]
iszak has joined #ruby
Slinky_Pete has joined #ruby
marxarelli|afk is now known as marxarelli
chouhoulis has quit [Ping timeout: 240 seconds]
andygeorge has quit [Remote host closed the connection]
pilne has joined #ruby
skweek has joined #ruby
orbyt_ has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
dviola has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
theunrav_ has quit []
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
Slinky_Pete has quit [Client Quit]
spiette has joined #ruby
millerti has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
tamouse__ has joined #ruby
enterprisey has joined #ruby
dstrunk has joined #ruby
Alina-malina has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.9.1]
eckhardt has joined #ruby
mkroman has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
griffindy has joined #ruby
enterprisey has joined #ruby
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
polishdub has quit [Quit: leaving]
troys is now known as troys_
t-recx has quit [Quit: t-recx]
Alina-malina has quit [Ping timeout: 240 seconds]
moei has quit [Quit: Leaving...]
Alina-malina has joined #ruby
moei has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys_ is now known as troys
moei has quit [Client Quit]
TomyLobo has quit [Ping timeout: 255 seconds]
sepp2k has quit [Quit: Leaving.]
eckhardt has joined #ruby
eckhardt has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
goyox86_ has quit [Quit: goyox86_]
dysfigur- has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
John__ has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
bambanx has joined #ruby
axsuul has joined #ruby
Dimik has joined #ruby
tcopeland has joined #ruby
nofxx has joined #ruby
alveric2 has joined #ruby
nobitanobi has quit [Ping timeout: 248 seconds]
alveric1 has quit [Ping timeout: 248 seconds]
sumobob has joined #ruby
enterprisey has joined #ruby
sumobob has quit [Client Quit]
sumobob has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
enterprisey_ has joined #ruby
sumobob_ has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
sumobob_ has quit [Client Quit]
nowhere_man has quit [Read error: Connection reset by peer]
sumobob has quit [Ping timeout: 240 seconds]
sumobob_ has joined #ruby
sumobob_ has quit [Client Quit]
chouhoulis has joined #ruby
sumobob has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
Parraki has joined #ruby
nowhereman has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Alina-malina has joined #ruby
dysfigur- is now known as dysfigured
mson has joined #ruby
ElDoggo has quit [Remote host closed the connection]
SeepingN has quit [Ping timeout: 248 seconds]
SeepingN has joined #ruby
knight33 has joined #ruby
mim1k has joined #ruby
naprimer2 has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
naprimer2 has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aphel is now known as aphelion