havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
m_antis has quit [Read error: Connection reset by peer]
m_antis has joined #ruby
jmcgnh has quit [Ping timeout: 240 seconds]
jmcgnh has joined #ruby
<axisys_> I see both book1 = Book.new and book2 = Book.new() works .. is there a difference? if not I suppose Book.new() is recommended?
<weaksauce> generally parens are omitted when there are no parameters
<weaksauce> and it's generally good style to use parens when there are
<weaksauce> Book.new(foo: :bar)
hololeap has joined #ruby
<axisys_> I know what :bar means.. what does foo: .. did not learn the right colon thing yet or seen yet
Guest99 has joined #ruby
Guest99 has quit [Client Quit]
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
<weaksauce> axisys_ it's shorthand for { foo: :bar } which is short for { :foo => :bar }
<weaksauce> well in the function call it is a named parameter or a named catch all parameter but that's a bit different
<weaksauce> you could also just have Book.new(12, "title")
<weaksauce> or depending on how it is defined Book.new(quantity: 12, title: "title")
swaggboi has quit [Ping timeout: 240 seconds]
roshanavand_ has quit [Ping timeout: 268 seconds]
TomyLobo has joined #ruby
hololeap has quit [Quit: Bye]
kaivai has quit [Quit: ZNC - https://znc.in]
John_Ivan has quit [Ping timeout: 256 seconds]
kaivai has joined #ruby
kaivai has quit [Client Quit]
Rounin has quit [Ping timeout: 268 seconds]
swaggboi has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
reset has quit [Quit: reset]
<LACampbe1> I know ruby is way faster than it used to be back in the 1.9 days. but man the startup time is bad now
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 256 seconds]
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
bluedust_ has quit [Remote host closed the connection]
hexology has quit [Quit: hex on you ...]
oxfuxxx has joined #ruby
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
oxfuxxx has joined #ruby
bluedust has joined #ruby
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
oxfuxxx has joined #ruby
shiru has joined #ruby
analogsalad has joined #ruby
teclator has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
oxfuxxx has joined #ruby
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
oxfuxxx has joined #ruby
bluedust_ has quit [Remote host closed the connection]
hololeap has joined #ruby
somekool has joined #ruby
_ht has joined #ruby
bluedust has joined #ruby
somekool has quit [Ping timeout: 256 seconds]
somekool has joined #ruby
bluedust_ has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
bluedust has quit [Ping timeout: 240 seconds]
hololeap has quit [Quit: Bye]
roadie has joined #ruby
somekool has quit [Ping timeout: 250 seconds]
<leftylink> I'm not very good at remember whether rotate rotates right or left
<leftylink> have to look it up every time
___nick___ has joined #ruby
<analogsalad> I think of it as clockwise
bluedust_ has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
Guest25 has joined #ruby
Guest25 has quit [Client Quit]
oxfuxxx has joined #ruby
gproto23 has joined #ruby
fef has joined #ruby
fef has quit [Remote host closed the connection]
fef has joined #ruby
gproto23 has quit [Ping timeout: 240 seconds]
reset has joined #ruby
roshanavand_ has joined #ruby
m_antis has quit [Read error: Connection reset by peer]
m_antis has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
Rounin has joined #ruby
bluedust has quit [Remote host closed the connection]
gproto23 has joined #ruby
bluedust has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
va5c0 has quit [Read error: Connection reset by peer]
lim has joined #ruby
<gproto23> hey which resources do you use when you want to know how to implement any method in ruby?
<gproto23> what does `assert true`?
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
John_Ivan has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<John_Ivan> I wud like tuo buy de damnburger
shiru has quit [Quit: leaving]
lim has quit [Remote host closed the connection]
lim has joined #ruby
<havenwood> LACampbe1: CRuby startup should still be zippy... Benchmark it?
<havenwood> hyperfine 'ruby --disable=gems -e "0"'
<havenwood> LACampbe1: I'm seeing a nice little improvement. I'm curious why you aren't.
<havenwood> gproto23: Implement any method? Hem, depending on how I read that it seems either sprawling and impossible or just to know Ruby.
<leftylink> I use Enumerable when implementing certain methods, but not all of them
<havenwood> gproto23: Minitest::Assertions you mean? Say more about your `assert` question?
<gproto23> havenwood: e.g each_index method how can i get information about it, its use case etc.
<leftylink> pandabot rb [:gproto, [].method(:each_index).owner]
<pandabot> [:gproto, Array] - https://carc.in/#/r/cj6p
<leftylink> therefore you know where each_index comes from.
<gproto23> leftylink: this is confusing for me. i do not understand it
<leftylink> you may do the same to find out where any method comes from.
<leftylink> that is the question you asked.
<leftylink> then perhaps seeing that it comes from array you will look up https://ruby-doc.org/core-3.0.2/Array.html
<leftylink> thereby you get information about it, which is also the question you asked
<havenwood> gproto23: You can use `ri` from the command line, like: ri each_index
<havenwood> gproto23: Or in Ruby, you can: foo.method(:each_index).owner
<havenwood> gproto23: And if the method isn't implemented in C: foo.method(:each_index).source_location
lim has quit [Remote host closed the connection]
jimeh has quit [Remote host closed the connection]
fef has quit [Ping timeout: 276 seconds]
jimeh has joined #ruby
bluedust_ has quit [Remote host closed the connection]
fef has joined #ruby
gproto23 has quit [Ping timeout: 268 seconds]
szkl has quit [Quit: Connection closed for inactivity]
bluedust has joined #ruby
bluedust has quit [Remote host closed the connection]
bluedust has joined #ruby
jimeh has quit [Remote host closed the connection]
jimeh has joined #ruby
bougyman has quit [Quit: ZNC 1.8.2 - https://znc.in]
bougyman has joined #ruby
<John_Ivan> WOOOOOOOOOOO
BSaboia has quit [Quit: This computer has gone to sleep]
bluedust has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
<havenwood> ?offtopic John_Ivan
<havenwood> Please keep this channel to Ruby-related discussion.
<John_Ivan> sorry
BSaboia has joined #ruby
cahoots_ has joined #ruby
<cahoots_> hi, i want to run Process.spawn(...) but direct stdout to multiple outputs (one being a file, the other being normal stdout). how might i do this? (and i can't just add "| tee file" to the end, because for various reasons i need Process.spawn to spawn the process directly and not a shell)
fef has quit [Quit: Leaving]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cahoots_ has quit [Ping timeout: 268 seconds]
easbarba has quit [Ping timeout: 240 seconds]
andjosh has joined #ruby
andjosh has quit [Client Quit]
jimeh has quit [Remote host closed the connection]
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
jimeh has joined #ruby
brw has quit [Read error: Connection reset by peer]
brw has joined #ruby
cahoots_ has joined #ruby
roshanavand_ has quit [Ping timeout: 268 seconds]
cahoots_ has quit [Ping timeout: 256 seconds]
jimeh has quit [Remote host closed the connection]
jimeh has joined #ruby
lim has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
eddof13 has joined #ruby
___nick___ has quit [Ping timeout: 268 seconds]
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
gproto23 has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 268 seconds]
lim has quit [Remote host closed the connection]
lim has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
gproto23 has quit [Quit: Leaving]
lim has quit [Remote host closed the connection]
lim has joined #ruby
068AAF6WV has joined #ruby
068AAF6WV has quit [Ping timeout: 240 seconds]
cahoots has joined #ruby
<havenwood> cahoots: you can make a little I/O wapper that delegates to both and point spawn to that.
BSaboia has joined #ruby
cahoots has quit [Ping timeout: 250 seconds]
cahoots has joined #ruby
oxfuxxx has quit [Ping timeout: 268 seconds]
victori has joined #ruby
mahlon_ has joined #ruby
In0perable has joined #ruby
yos has joined #ruby
yos has quit [Changing host]
yos has joined #ruby
dka_ has joined #ruby
perrierjouet has quit [*.net *.split]
jimeh has quit [*.net *.split]
brw has quit [*.net *.split]
swaggboi has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
yossarian has quit [*.net *.split]
mahlon has quit [*.net *.split]
aighearach has quit [*.net *.split]
kapil has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
Inoperable has quit [*.net *.split]
dka has quit [*.net *.split]
vigumnov has quit [*.net *.split]
finsternis has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
_axx has quit [*.net *.split]
keyvan has quit [*.net *.split]
jtperreault has quit [*.net *.split]
cout has quit [*.net *.split]
valeness has quit [*.net *.split]
eam has quit [*.net *.split]
adam12 has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
ccooke has quit [*.net *.split]
farhad has joined #ruby
somekool has joined #ruby
farhad has quit [Client Quit]
brw has joined #ruby
finsternis has joined #ruby
perrierjouet has joined #ruby
eam has joined #ruby
swaggboi has joined #ruby
cout has joined #ruby
kapil has joined #ruby
aighearach has joined #ruby
yosafbridge has joined #ruby
nyuszika7h has joined #ruby
jmcgnh has joined #ruby
_axx has joined #ruby
jtperreault has joined #ruby
adam12 has joined #ruby
valeness has joined #ruby
keyvan has joined #ruby
markmarkmark has joined #ruby
ccooke has joined #ruby
finsternis has quit [Max SendQ exceeded]
jmcgnh has quit [Max SendQ exceeded]
brw has quit [Max SendQ exceeded]
finsternis has joined #ruby
brw has joined #ruby
jimeh has joined #ruby
jmcgnh has joined #ruby
_ht has quit [Remote host closed the connection]
Feriun has joined #ruby
Feriun has left #ruby [#ruby]
lim has quit [Ping timeout: 256 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]