tag has quit [Quit: Connection closed for inactivity]
caleBOT_ has quit [Ping timeout: 260 seconds]
caleBOT has quit [Ping timeout: 260 seconds]
mjolnird has quit [Remote host closed the connection]
alfiemax has joined #ruby
mjolnird has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
alejoloa has joined #ruby
moei has joined #ruby
alejoloa has left #ruby [#ruby]
<kegan_>
why is it that I have a class variable
<kegan_>
@@var = 1
<kegan_>
puts @@var + " some String "
<kegan_>
casts this to a string
<kegan_>
err, puts Class.var + "some string"
<kegan_>
I just want to concatenate
<kegan_>
and it's casting it to a string like, ruby, please
<kegan_>
WTF
<mozzarella>
what?
<mozzarella>
not sure I understand
mroutis has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 255 seconds]
<kegan_>
I want to use the value of that integer variable
<kegan_>
in a put statement
<kegan_>
without casting that variable into a string
<kegan_>
which is the apparent outcome of putting it into a puts statement with + concatenation with another strong
<kegan_>
string
<kegan_>
jesus can I type ONE SENTENCE correctly
<kegan_>
just entirely correctly
amar has joined #ruby
yup has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
cpruitt has joined #ruby
amar has quit [Ping timeout: 248 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
alfiemax has joined #ruby
cpruitt has quit [Ping timeout: 255 seconds]
cpruitt has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
coderphive has quit [Quit: coderphive]
<havenwood>
>> 1 + " some String "
<ruby[bot]>
havenwood: # => String can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/1004076)
cpruitt has quit [Ping timeout: 248 seconds]
<havenwood>
kegan_: A String can't be coerced into an Integer in Ruby.
<havenwood>
I'm more modern Ruby: #!> TypeError: String can't be coerced into Integer
<havenwood>
>> @@var = 1; @@var + '' # kegan_
<ruby[bot]>
havenwood: # => /tmp/execpad-a9c844a20409/source-a9c844a20409:2: warning: class variable access from toplevel ...check link for more (https://eval.in/1004077)
<havenwood>
kegan_: Avoid using class variables.
<havenwood>
kegan_: If you can show your code we can probably give you some good suggestions.
cpruitt has joined #ruby
arashb has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
orbyt_ has joined #ruby
pilne has quit [Quit: Leaving]
cschneid_ has joined #ruby
yup has joined #ruby
arashb has quit [Ping timeout: 268 seconds]
cpruitt has quit [Ping timeout: 276 seconds]
sanscoeur has joined #ruby
cschneid_ has quit [Ping timeout: 276 seconds]
chris349 has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
mroutis has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
PaulePanter has quit [Quit: Lost terminal]
yup has quit [Ping timeout: 276 seconds]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
yup has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
caleBOT_ has quit [Ping timeout: 255 seconds]
caleBOT has quit [Ping timeout: 255 seconds]
arashb has joined #ruby
ryzokuken has joined #ruby
cpruitt has joined #ruby
arashb has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
sanscoeur has quit [Remote host closed the connection]
schleppel has joined #ruby
alfiemax has quit [Remote host closed the connection]
cpruitt has quit [Ping timeout: 248 seconds]
dcunit3d has joined #ruby
jcarl43 has joined #ruby
caleBOT_ has joined #ruby
caleBOT__ has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
jcarl43 has quit [Client Quit]
JoshS has joined #ruby
donofrio has quit [Remote host closed the connection]
jcarl43 has joined #ruby
jcarl43 has quit [Client Quit]
jcarl43 has joined #ruby
roshanavand has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
yup has quit [Ping timeout: 255 seconds]
amar has joined #ruby
cpruitt has joined #ruby
yup has joined #ruby
amar has quit [Ping timeout: 256 seconds]
arashb has joined #ruby
cpruitt has quit [Ping timeout: 276 seconds]
mroutis has quit [Ping timeout: 265 seconds]
nolanv has quit [Read error: Connection reset by peer]
nolanv has joined #ruby
arashb has quit [Ping timeout: 265 seconds]
armando has quit [Quit: ZNC 1.7.x-nightly-20171128-66897057 - https://znc.in]
redlegion has quit [Ping timeout: 255 seconds]
rkazak has joined #ruby
kent\n has quit [Ping timeout: 246 seconds]
redlegion has joined #ruby
caleBOT__ has quit [Remote host closed the connection]
caleBOT_ has quit [Remote host closed the connection]
armando has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
ramfjord has joined #ruby
mohsen_1 has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
alfiemax has joined #ruby
oleo has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 255 seconds]
caleBOT_ has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
lytol has quit [Remote host closed the connection]
dinfuehr has joined #ruby
dcunit3d has quit [Ping timeout: 256 seconds]
kent\n has joined #ruby
ciscam has quit [Ping timeout: 268 seconds]
ciscam has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
tvw has joined #ruby
anisha has joined #ruby
n0m4d1c has quit [Ping timeout: 255 seconds]
dinfuehr has quit [Ping timeout: 256 seconds]
yup has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
sauvin has joined #ruby
aupadhye has joined #ruby
jshjsh has joined #ruby
kapil___ has joined #ruby
cagomez has joined #ruby
JoshS has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
n0m4d1c has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
robertothais has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
dcunit3d has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
arashb has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
caleBOT_ has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ruby
pwnd_nsfw has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
KeyJoo has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
PaulePanter has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
arashb has quit [Ping timeout: 248 seconds]
roshanavand has joined #ruby
amar has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
amar has quit [Ping timeout: 276 seconds]
RougeR has quit [Ping timeout: 248 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]
reber has joined #ruby
<zenspider>
kegan_: easiest answer: always use string interpolation; puts "v=#{@@var}"
CrazyEddy has joined #ruby
alfiemax_ has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
consti has joined #ruby
venmx has quit [Ping timeout: 265 seconds]
Guest25716 has quit [Quit: Leaving]
c0ncealed1 has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
Burgestrand has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 265 seconds]
za1b1tsu has joined #ruby
TinkerT has quit [Ping timeout: 256 seconds]
TinkerT has joined #ruby
conta has joined #ruby
dionysus69 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
d_kam has joined #ruby
Burgestrand has quit [Quit: Closing time!]
roshanavand has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
ramfjord has joined #ruby
ikbenhet has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
mniip has quit [Ping timeout: 615 seconds]
mtkd has joined #ruby
ta_ has quit [Remote host closed the connection]
<dminuoso>
Or just explicitly .to_s things instead of relying on implicit method calls
* dminuoso
¯\_(ツ)_/¯
suukim has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
bzb has joined #ruby
sidx64 has joined #ruby
arashb has joined #ruby
clemens3 has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
amar has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
robertothais has quit [Ping timeout: 265 seconds]
coderphive has joined #ruby
TomyWork has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
armyriad has quit [Read error: Connection reset by peer]
d_kam has quit [Quit: Be back later ...]
armyriad has joined #ruby
coderphive has quit [Ping timeout: 256 seconds]
d_kam has joined #ruby
bzb has quit [Quit: Leaving]
amar has quit [Ping timeout: 248 seconds]
d_kam has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
cpruitt has joined #ruby
darkhanb has joined #ruby
marr has joined #ruby
mniip has joined #ruby
cpruitt has quit [Ping timeout: 276 seconds]
Burgestrand has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
sysvalve has joined #ruby
minimalism has quit [Quit: minimalism]
caleBOT has quit [Ping timeout: 255 seconds]
caleBOT_ has quit [Ping timeout: 255 seconds]
consti has quit [Quit: consti]
cpruitt has joined #ruby
consti has joined #ruby
bzb has joined #ruby
consti has quit [Client Quit]
armyriad has quit [Ping timeout: 256 seconds]
arashb has joined #ruby
cpruitt has quit [Ping timeout: 276 seconds]
armyriad has joined #ruby
leslie has joined #ruby
rajpratik71 has joined #ruby
ta_ has joined #ruby
kegan_ has quit [Ping timeout: 276 seconds]
leslie has quit [Client Quit]
arashb has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
byte512 has quit [Ping timeout: 256 seconds]
guille-moe has joined #ruby
roshanavand has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
byte512 has joined #ruby
ur5us has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
ellcs has joined #ruby
byte512 has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 248 seconds]
consti has joined #ruby
consti has quit [Client Quit]
rajpratik71 has quit [Quit: rajpratik71]
roshanavand has joined #ruby
d_kam has joined #ruby
amar has joined #ruby
d_kam has quit [Ping timeout: 276 seconds]
amar has quit [Remote host closed the connection]
amar has joined #ruby
arashb has joined #ruby
byte512 has joined #ruby
amar has quit [Ping timeout: 256 seconds]
Beams has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
darkhanb has quit [Ping timeout: 260 seconds]
arashb has quit [Ping timeout: 268 seconds]
byte512 has quit [Ping timeout: 255 seconds]
Xiti` has joined #ruby
byte512 has joined #ruby
plexigras has joined #ruby
arashb has joined #ruby
yup has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
alfiemax has joined #ruby
jsaak has quit [Ping timeout: 250 seconds]
arashb has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
alex`` has joined #ruby
yup has quit [Quit: WeeChat 2.1]
user1 has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
jsaak has joined #ruby
karapetyan has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
caleBOT_ has quit [Ping timeout: 276 seconds]
caleBOT has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
nolanv has quit [Read error: Connection reset by peer]
ryzokuken has quit [Remote host closed the connection]
Abhijit has joined #ruby
<Abhijit>
Hi
<Abhijit>
i am trying to use this module https://www.rubydoc.info/gems/toml-rb/0.3.0/TOML i did not installed any extra libraries. when i tyr to do TOML.parse(content) in my irb it says NoMethodError: undefined method `parse' for TOML:Module
<elomatreb>
You have required the module?
<Abhijit>
no
<elomatreb>
`require "toml"` loads the library
<dminuoso>
*toml-rb
<elomatreb>
mh, right
<dminuoso>
toml-rb and toml are different things (which is why 1.0.0 in toml-rb changed the namespace to avoid namespace conflicts)
_antares_ has quit [Remote host closed the connection]
_antares_ has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
schleppel has joined #ruby
Xiti` has quit [Quit: Xiti`]
jcarl43 has joined #ruby
Xiti has joined #ruby
rippa has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
mroutis has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ciscam has quit [Ping timeout: 240 seconds]
memo1 has joined #ruby
jamiejackson has joined #ruby
ciscam has joined #ruby
GodFather_ has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
apeiros has joined #ruby
caleBOT__ has joined #ruby
caleBO___ has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
nima_m has joined #ruby
alex`` has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
ikbenhet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caleBOT_ has quit [Ping timeout: 264 seconds]
caleBOT has quit [Ping timeout: 264 seconds]
gix- has quit [Ping timeout: 276 seconds]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kmurphy4 has joined #ruby
tvw has quit [Remote host closed the connection]
nima_m has quit [Client Quit]
nima_m has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
NL3limin4t0r has joined #ruby
GodFather_ has joined #ruby
jamiejackson99 has joined #ruby
jamiejackson has quit [Ping timeout: 260 seconds]
_antares_ has quit [Remote host closed the connection]
ellcs has quit [Remote host closed the connection]
Hashirama has joined #ruby
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
<Hashirama>
hey beginner programmer here — looking at a private rails repo and I am seeing something like "result = ::Foo::Bar.meth(" just trying to understand what the colons mean. Unfortunately, I am not sure how I can google such a thing without knowing what it is.
jottr has quit [Ping timeout: 256 seconds]
jamiejackson99 has quit [Client Quit]
<Zarthus>
Modules / Namespacing
jamiejackson99 has joined #ruby
<Hashirama>
Thank you
schleppel has joined #ruby
<Hashirama>
Yeah I guessed it was namespacing.
jamiejackson99 has quit [Client Quit]
_antares_ has joined #ruby
<Hashirama>
I think the prefixing `::` is throwing me off I bet thats something to do with relative paths
<NL3limin4t0r>
Hashirama: The prefixed `::` indicates that you navigate namespaces from root.
<dminuoso>
Hashirama: :: is shorthand for Object::
jamiejackson has joined #ruby
<Hashirama>
Ah thanks.
<dminuoso>
Hashirama: So every constant gets tossed in there. `::Foo` is basically a way to access Object::Foo rather than say some `Foo` from your current nesting
<havenwood>
I should make that portable, but... it's such a pain!
<havenwood>
I guess I could switch to a script that builds it with ruby-install easy enough.
regedit has joined #ruby
<tbuehlmann>
I just searched for a way to install a nightly build via ruby-install, but it seems to be an anti feature
pilne has joined #ruby
<havenwood>
tbuehlmann: you can do it easy enough by pointing at the nightly url, but yeah, postmodern wanted to keep it simple by supporting stable releases
n0m4d1c has joined #ruby
<regedit>
if i'm using a gem like Unirest and i know i'm gonna be placing hundreds of HTTP requests to a given 3rd party, do i have to do anything to care about persistent connection / keep alive?
<regedit>
Or will that be taken care of automagically
schleppel has quit [Quit: Konversation terminated!]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
kies^ has joined #ruby
Beams has quit [Quit: .]
jongley has joined #ruby
<jongley>
Do any of you cunts know how rails works? thx
<havenwood>
regedit: Unirest seems to be a pretty thin wrapper around the RestClient gem.
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has joined #ruby
TomyLobo has joined #ruby
nima_m has quit [Client Quit]
nima_m has joined #ruby
caleBO___ has quit [Remote host closed the connection]
caleBOT__ has quit [Remote host closed the connection]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
conta has quit [Quit: conta]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
Cavallari has joined #ruby
caleBOT_ has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
bmurt has joined #ruby
deadmund has joined #ruby
<deadmund>
What is the require line I need so that I can write a script that uses this module? https://github.com/chadrem/market_bot I’m trying to replicate the “App API example” given in the readme for that project but I am getting “uninitialized constant MarketBot (NameError)” Thanks in advance!!
<dminuoso>
baweaver: If its a google product its usually not that hard.
caleBOT has joined #ruby
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
caleBOT has quit [Ping timeout: 276 seconds]
nima_m has quit [Client Quit]
nima_m has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
Hashirama has quit [Quit: Leaving.]
mtkd has quit []
tacoboy has joined #ruby
blackmesa has joined #ruby
mtkd has joined #ruby
robertothais has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dviola has joined #ruby
roamingdog has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather__ has joined #ruby
jenrzzz has joined #ruby
_antares_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
gix has quit [Ping timeout: 240 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
lytol has joined #ruby
alfiemax has joined #ruby
<deadmund>
Nevermind, I figured it out! :)
sameerynho has joined #ruby
<deadmund>
I had to “require” the name of the module. It took some guess and check. In my case it was “market_bot”
cpruitt has quit []
ellcs has joined #ruby
nima_m has quit [Ping timeout: 276 seconds]
jhass has quit [Quit: Bye]
deadmund has left #ruby [#ruby]
GodFather__ has quit [Ping timeout: 240 seconds]
_antares_ has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
mtkd has quit []
GodFather_ has quit [Remote host closed the connection]
_antares_ has quit [Ping timeout: 240 seconds]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
mtkd has joined #ruby
<cagomez>
how does ActiveRecord `create` generate it's timestamps?
<tuskkk___>
need some help with rails, have a form from a custom class, need a dropdown there from one of the fields in a model...
bmurt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
nowhereman_ has joined #ruby
<apeiros>
?rails tuskkk___
<ruby[bot]>
tuskkk___: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<tuskkk___>
Hey apeiros! have already asked there, waiting.
<apeiros>
in that case…
<apeiros>
?doublepost tuskkk___
<ruby[bot]>
apeiros: I don't know anything about doublepost
<apeiros>
?crosspost tuskkk___
<ruby[bot]>
tuskkk___: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<apeiros>
I need more aliases for that
<apeiros>
but really, this isn't the right channel for rails questions. please keep them over there.
alfiemax has joined #ruby
<tuskkk___>
ok, thanks
ShekharReddy has quit [Quit: Connection closed for inactivity]
venmx has quit [Remote host closed the connection]
ellcs has joined #ruby
ccrow has joined #ruby
jottr has joined #ruby
gnufied has quit [Ping timeout: 255 seconds]
suukim has quit [Quit: Konversation terminated!]
alfiemax has quit [Ping timeout: 268 seconds]
mnemon has joined #ruby
tulak has quit [Remote host closed the connection]
mtkd has quit []
memo1 has joined #ruby
tulak has joined #ruby
jameser has joined #ruby
edwardly has quit [Ping timeout: 260 seconds]
plexigras has quit [Ping timeout: 256 seconds]
cschneid_ has quit [Remote host closed the connection]
tulak has quit [Ping timeout: 240 seconds]
jameser has quit [Ping timeout: 256 seconds]
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
KeyJoo has joined #ruby
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
nitric has quit [Ping timeout: 255 seconds]
vovs03 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
jenrzzz has joined #ruby
grilix has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caleBOT has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
caleBOT_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitric has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Zaab1t has quit [Quit: Zaab1t]
regedit has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tulak has joined #ruby
_antares_ has joined #ruby
ta_ has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
orbyt_ has joined #ruby
knight33_ has joined #ruby
minimalism has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
_antares_ has quit [Ping timeout: 260 seconds]
tulak has quit [Ping timeout: 260 seconds]
ta_ has quit [Quit: Leaving...]
postmodern has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tulak has joined #ruby
karapetyan has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bmurt has joined #ruby
mohsen_1 has quit [Quit: Connection closed for inactivity]
coderphive has quit [Quit: coderphive]
karapetyan has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
jenrzzz has joined #ruby
caleBOT has quit [Remote host closed the connection]
caleBOT_ has quit [Remote host closed the connection]
BubonicPestilenc has joined #ruby
<BubonicPestilenc>
test
<BubonicPestilenc>
Hello my dear friends!
karapetyan has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
<BubonicPestilenc>
I have a question: in most cases, i do "scan(/...(x).../).flatten.first"
<BubonicPestilenc>
i know about $1, $2
<BubonicPestilenc>
but are there any alternative to .flatten.first? One i know is .dig(0, 0)
cschneid_ has quit [Ping timeout: 248 seconds]
<elomatreb>
If you just want to get at the first matching group, I like using the [] method with a regex on string
<elomatreb>
I.e. somestring[/re(ex)/, 1]
<BubonicPestilenc>
hm..., yeah! right! i remember i seen somewhere, tyvm
caleBOT_ has quit [Remote host closed the connection]
caleBOT__ has joined #ruby
caleBOT has quit [Write error: Broken pipe]
caleBO___ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
squishyj has joined #ruby
<squishyj>
?guys
<ruby[bot]>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
squishyj has left #ruby [#ruby]
tvw has joined #ruby
za1b1tsu has quit [Ping timeout: 276 seconds]
cschneid_ has joined #ruby
jenrzzz has joined #ruby
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
Burgestrand has joined #ruby
adlerdias has quit [Quit: adlerdias]
alfiemax has joined #ruby
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 260 seconds]
<baweaver>
!troll squishyj
reber has quit [Remote host closed the connection]
robertothais has quit [Ping timeout: 255 seconds]
Cavallari1 has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
Cavallari has quit [Ping timeout: 256 seconds]
Cavallari1 is now known as Cavallari
Cavallari1 has joined #ruby
regedit has joined #ruby
GodFather has joined #ruby
Cavallari has quit [Ping timeout: 256 seconds]
Cavallari has joined #ruby
caleBO___ has quit [Remote host closed the connection]
caleBOT__ has quit [Remote host closed the connection]
tulak has quit []
Cavallari1 has quit [Ping timeout: 276 seconds]
sidx64 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
_antares_ has joined #ruby
sidx64_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sidx64 has quit [Ping timeout: 264 seconds]
za1b1tsu has joined #ruby
_antares_ has quit [Ping timeout: 265 seconds]
sidx64 has joined #ruby
sidx64_ has quit [Ping timeout: 240 seconds]
vladdypwnz has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
ryzokuken has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chouhoul_ has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has joined #ruby
mikecmpbll has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
sidx64_ has joined #ruby
chouhoul_ has quit [Ping timeout: 248 seconds]
caleBOT_ has joined #ruby
caleBOT has joined #ruby
graft has joined #ruby
nowhere_man has joined #ruby
sidx64__ has joined #ruby
sidx64 has quit [Ping timeout: 264 seconds]
sidx64_ has quit [Ping timeout: 240 seconds]
_antares_ has joined #ruby
lypsis has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
_antares_ has quit [Remote host closed the connection]
biberu has quit []
Burgestrand has quit [Quit: Good bye and have a nice day!]
marr has joined #ruby
sammi`_ has joined #ruby
Cavallari1 has joined #ruby
coderphive has joined #ruby
blackmesa has quit [Quit: WeeChat 2.1]
duderonomy has joined #ruby
blackmesa has joined #ruby
duderonomy has quit [Client Quit]
Cavallari has quit [Ping timeout: 264 seconds]
Cavallari1 is now known as Cavallari
sammi` has quit [Quit: Lost terminal]
dionysus69 has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]