oxfuxxx has quit [Quit: can you please adjust your IRC quit message to be less transphobic?]
gr33n7007h has joined #ruby
bluedust_ has quit [Remote host closed the connection]
bluedust has joined #ruby
gproto23 has joined #ruby
bluedust has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
constxd_ has joined #ruby
oxfuxxx has joined #ruby
exondation has joined #ruby
mahlon has quit [Ping timeout: 250 seconds]
bluedust has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
constxd_ has quit [Ping timeout: 240 seconds]
gproto23 has quit [Remote host closed the connection]
gproto23 has joined #ruby
graywolf has joined #ruby
Aylat has joined #ruby
<Aylat>
Hello friends, i need some tips, i want to make a class to store, for example, the rgb values for the colors, lets say, class Colors, to call Colors.RED and get the value, in another languages like php, that values are static consts, what's the correct aproach on ruby?
<Aylat>
sorry for my rubbish english, not my native language
<Aylat>
ok, Colors::RED seems the solution
Aylat has quit [Quit: Leaving]
Aylat has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
<coolshaurya>
I installed rake via `gem install rake` but when I run it, I get the error: `The program 'rake' is not in your PATH.`
<coolshaurya>
What do I need to add to my path to be able to run rake?
Sheilong has joined #ruby
<Aylat>
what OS are you using
<Rounin>
It could also be that you just have to open a new shell, btw... No guarantees, but it might work
<Aylat>
gems should be in path environ, dont know if closing shell will work
<Rounin>
Ah
fef has joined #ruby
random-jellyfish has joined #ruby
<nakilon>
ffs
<nakilon>
main.rb:30: _1 is reserved for numbered parameter
<bhaak>
new feature.
<bhaak>
but you also should feel bad for using such parameter names
<bhaak>
easiest workaround, if you can, use an older ruby version
<Aylat>
Well, feeling bad isn't a good argument, lot of us are switching to ruby, and ruby conventions are weird sometimes
<Aylat>
maybe there's some ide with a good refactor tool
fef has quit [Quit: Leaving]
<bhaak>
variable names with just underscores and names are bad in any language :)
<bhaak>
I'm also not a fan of them for numbered parameters but that's what landed in ruby
<bhaak>
*underscores and numbers
unmanbearpig has quit [Quit: WeeChat 3.3]
fef has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
<coolshaurya>
<Aylat> "what OS are you using" <- nixos
exondation has quit [Ping timeout: 260 seconds]
<Aylat>
hmm, gems are not on my path, not sure how gems work so
Aylat has quit [Ping timeout: 250 seconds]
hanzo has joined #ruby
oxfuxxx has joined #ruby
bluedust has quit [Remote host closed the connection]
bluedust has joined #ruby
bluedust has quit [Ping timeout: 256 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
taupiqueur has joined #ruby
fredlinhares has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
<coolshaurya>
aha, some ~googling~ duckducking reveals that I can find out the binary path by executing `git environment`
<coolshaurya>
s/git/gem/
taupiqueur has quit [Ping timeout: 240 seconds]
Aylat has joined #ruby
oxfuxxx has joined #ruby
Aylat has quit [Client Quit]
taupiqueur has joined #ruby
mahlon has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
infernix has quit [Ping timeout: 245 seconds]
<nakilon>
I don't use _1 as a parameter name
<nakilon>
it would be the same crap as the new feature
<nakilon>
I did when /\A\\access\s+quote\s+(\S+)\s+\+\z/ ; _1 = $1 ; ...
pmwals09 has joined #ruby
<nakilon>
didn't want to invent the var name for just using once later
<nakilon>
and I can't use older ruby because I use Async for websockets
oxfuxxx has joined #ruby
<nakilon>
(that's a chat bot commands parser)
oxfuxxx has quit [Ping timeout: 240 seconds]
constxd_ has joined #ruby
infernix has joined #ruby
pmwals09 has quit [Remote host closed the connection]
pmwals09 has joined #ruby
oxfuxxx has joined #ruby
random-jellyfish has quit [Ping timeout: 256 seconds]
random-jellyfish has joined #ruby
oxfuxxx has quit [Ping timeout: 250 seconds]
taupiqueur has quit [Ping timeout: 260 seconds]
fredlinhares has quit [Quit: WeeChat 3.4]
gr33n7007h has joined #ruby
pmwals09 has quit [Remote host closed the connection]
pmwals09 has joined #ruby
mmalter has joined #ruby
pmwals09 has quit [Read error: Connection reset by peer]
pmwals09 has joined #ruby
pmwals09 has quit [Remote host closed the connection]
factor has quit [Read error: Connection reset by peer]
splud has quit [Ping timeout: 256 seconds]
gproto23 has quit [Ping timeout: 250 seconds]
pmwals09 has joined #ruby
pmwals09 has quit [Ping timeout: 250 seconds]
pmwals09 has joined #ruby
pmwals09 has quit [Remote host closed the connection]
pmwals09 has joined #ruby
factor has joined #ruby
pmwals09 has quit [Ping timeout: 256 seconds]
pmwals09 has joined #ruby
pmwals09 has quit [Ping timeout: 240 seconds]
fef has quit [Ping timeout: 276 seconds]
constxd_ has quit [Ping timeout: 250 seconds]
pmwals09 has joined #ruby
pmwals09 has quit [Remote host closed the connection]
pmwals09 has joined #ruby
pmwals09 has quit [Remote host closed the connection]
splud has joined #ruby
FetidToot has quit [Ping timeout: 240 seconds]
FetidToot has joined #ruby
FetidToot0 has joined #ruby
justGhost has quit [Remote host closed the connection]