00:02
m_antis has quit [Read error: Connection reset by peer]
00:03
m_antis has joined #ruby
00:15
jmcgnh has quit [Ping timeout: 240 seconds]
00:24
jmcgnh has joined #ruby
01:08
<
axisys_ >
I see both book1 = Book.new and book2 = Book.new() works .. is there a difference? if not I suppose Book.new() is recommended?
01:11
<
weaksauce >
generally parens are omitted when there are no parameters
01:11
<
weaksauce >
and it's generally good style to use parens when there are
01:11
<
weaksauce >
Book.new(foo: :bar)
01:12
hololeap has joined #ruby
01:13
<
axisys_ >
I know what :bar means.. what does foo: .. did not learn the right colon thing yet or seen yet
01:23
Guest99 has joined #ruby
01:25
Guest99 has quit [Client Quit]
01:27
bluedust has quit [Ping timeout: 240 seconds]
01:38
bluedust has joined #ruby
01:39
<
weaksauce >
axisys_ it's shorthand for { foo: :bar } which is short for { :foo => :bar }
01:40
<
weaksauce >
well in the function call it is a named parameter or a named catch all parameter but that's a bit different
01:41
<
weaksauce >
you could also just have Book.new(12, "title")
01:42
<
weaksauce >
or depending on how it is defined Book.new(quantity: 12, title: "title")
01:50
swaggboi has quit [Ping timeout: 240 seconds]
02:19
roshanavand_ has quit [Ping timeout: 268 seconds]
02:46
TomyLobo has joined #ruby
02:47
hololeap has quit [Quit: Bye]
03:42
John_Ivan has quit [Ping timeout: 256 seconds]
03:44
kaivai has joined #ruby
03:46
kaivai has quit [Client Quit]
04:26
Rounin has quit [Ping timeout: 268 seconds]
04:39
swaggboi has joined #ruby
04:43
bluedust_ has joined #ruby
04:46
bluedust has quit [Ping timeout: 240 seconds]
04:48
bluedust has joined #ruby
04:51
bluedust_ has quit [Ping timeout: 240 seconds]
04:55
reset has quit [Quit: reset]
04:55
<
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
05:02
bluedust_ has joined #ruby
05:05
bluedust has quit [Ping timeout: 240 seconds]
05:10
bluedust has joined #ruby
05:14
bluedust_ has quit [Ping timeout: 256 seconds]
05:17
bluedust_ has joined #ruby
05:20
bluedust has quit [Ping timeout: 240 seconds]
05:51
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
06:12
bluedust_ has quit [Remote host closed the connection]
06:28
hexology has quit [Quit: hex on you ...]
06:36
oxfuxxx has joined #ruby
06:52
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
06:52
oxfuxxx has joined #ruby
06:53
bluedust has joined #ruby
07:08
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
07:09
oxfuxxx has joined #ruby
07:14
shiru has joined #ruby
07:24
analogsalad has joined #ruby
07:29
teclator has joined #ruby
07:53
bluedust_ has joined #ruby
07:56
bluedust has quit [Ping timeout: 240 seconds]
08:08
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
08:08
oxfuxxx has joined #ruby
08:16
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
08:16
oxfuxxx has joined #ruby
08:24
bluedust_ has quit [Remote host closed the connection]
08:29
hololeap has joined #ruby
08:35
somekool has joined #ruby
08:53
_ht has joined #ruby
09:03
bluedust has joined #ruby
09:04
somekool has quit [Ping timeout: 256 seconds]
09:06
somekool has joined #ruby
09:08
bluedust_ has joined #ruby
09:10
oxfuxxx has quit [Ping timeout: 240 seconds]
09:11
bluedust has quit [Ping timeout: 240 seconds]
09:36
hololeap has quit [Quit: Bye]
09:40
roadie has joined #ruby
09:48
somekool has quit [Ping timeout: 250 seconds]
09:53
<
leftylink >
I'm not very good at remember whether rotate rotates right or left
09:53
<
leftylink >
have to look it up every time
09:54
___nick___ has joined #ruby
10:02
<
analogsalad >
I think of it as clockwise
10:17
bluedust_ has quit [Ping timeout: 240 seconds]
10:25
bluedust has joined #ruby
10:41
Guest25 has joined #ruby
10:42
Guest25 has quit [Client Quit]
10:46
oxfuxxx has joined #ruby
10:53
gproto23 has joined #ruby
11:04
fef has joined #ruby
11:08
fef has quit [Remote host closed the connection]
11:09
fef has joined #ruby
11:10
gproto23 has quit [Ping timeout: 240 seconds]
11:18
reset has joined #ruby
11:32
roshanavand_ has joined #ruby
11:33
m_antis has quit [Read error: Connection reset by peer]
11:44
m_antis has joined #ruby
11:58
bluedust_ has joined #ruby
12:01
bluedust has quit [Ping timeout: 240 seconds]
12:02
bluedust has joined #ruby
12:05
bluedust_ has quit [Ping timeout: 240 seconds]
12:30
Rounin has joined #ruby
12:43
bluedust has quit [Remote host closed the connection]
12:45
gproto23 has joined #ruby
12:53
bluedust has joined #ruby
13:09
va5c0 has joined #ruby
13:10
va5c0 has quit [Client Quit]
13:10
va5c0 has joined #ruby
13:15
va5c0 has quit [Read error: Connection reset by peer]
13:58
lim has joined #ruby
14:07
<
gproto23 >
hey which resources do you use when you want to know how to implement any method in ruby?
14:22
<
gproto23 >
what does `assert true`?
14:28
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
14:33
John_Ivan has joined #ruby
14:46
bluedust_ has joined #ruby
14:49
bluedust has quit [Ping timeout: 240 seconds]
14:56
<
John_Ivan >
I wud like tuo buy de damnburger
14:57
shiru has quit [Quit: leaving]
14:57
lim has quit [Remote host closed the connection]
14:57
lim has joined #ruby
14:57
<
havenwood >
LACampbe1: CRuby startup should still be zippy... Benchmark it?
14:58
<
havenwood >
hyperfine 'ruby --disable=gems -e "0"'
14:58
<
havenwood >
LACampbe1: I'm seeing a nice little improvement. I'm curious why you aren't.
15:01
<
havenwood >
gproto23: Implement any method? Hem, depending on how I read that it seems either sprawling and impossible or just to know Ruby.
15:02
<
leftylink >
I use Enumerable when implementing certain methods, but not all of them
15:02
<
havenwood >
gproto23: Minitest::Assertions you mean? Say more about your `assert` question?
15:05
<
gproto23 >
havenwood: e.g each_index method how can i get information about it, its use case etc.
15:07
<
leftylink >
pandabot rb [:gproto, [].method(:each_index).owner]
15:08
<
leftylink >
therefore you know where each_index comes from.
15:09
<
gproto23 >
leftylink: this is confusing for me. i do not understand it
15:10
<
leftylink >
you may do the same to find out where any method comes from.
15:10
<
leftylink >
that is the question you asked.
15:11
<
leftylink >
thereby you get information about it, which is also the question you asked
15:15
<
havenwood >
gproto23: You can use `ri` from the command line, like: ri each_index
15:15
<
havenwood >
gproto23: Or in Ruby, you can: foo.method(:each_index).owner
15:15
<
havenwood >
gproto23: And if the method isn't implemented in C: foo.method(:each_index).source_location
15:15
lim has quit [Remote host closed the connection]
15:16
jimeh has quit [Remote host closed the connection]
15:16
fef has quit [Ping timeout: 276 seconds]
15:17
jimeh has joined #ruby
15:22
bluedust_ has quit [Remote host closed the connection]
15:31
fef has joined #ruby
15:48
gproto23 has quit [Ping timeout: 268 seconds]
15:58
szkl has quit [Quit: Connection closed for inactivity]
16:08
bluedust has joined #ruby
16:13
bluedust has quit [Remote host closed the connection]
16:42
bluedust has joined #ruby
16:47
jimeh has quit [Remote host closed the connection]
16:48
jimeh has joined #ruby
17:05
bougyman has joined #ruby
17:18
<
John_Ivan >
WOOOOOOOOOOO
17:21
BSaboia has quit [Quit: This computer has gone to sleep]
17:31
bluedust has quit [Ping timeout: 240 seconds]
17:40
teclator has joined #ruby
17:50
<
havenwood >
?offtopic John_Ivan
17:51
<
havenwood >
Please keep this channel to Ruby-related discussion.
18:14
BSaboia has joined #ruby
18:19
cahoots_ has joined #ruby
18:20
<
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)
18:39
fef has quit [Quit: Leaving]
18:44
___nick___ has joined #ruby
18:44
___nick___ has quit [Client Quit]
18:46
___nick___ has joined #ruby
18:55
cahoots_ has quit [Ping timeout: 268 seconds]
18:56
easbarba has quit [Ping timeout: 240 seconds]
19:06
andjosh has joined #ruby
19:06
andjosh has quit [Client Quit]
19:15
jimeh has quit [Remote host closed the connection]
19:21
cahoots has joined #ruby
19:25
cahoots has quit [Ping timeout: 256 seconds]
19:25
jimeh has joined #ruby
19:35
brw has quit [Read error: Connection reset by peer]
19:35
brw has joined #ruby
19:37
cahoots_ has joined #ruby
19:37
roshanavand_ has quit [Ping timeout: 268 seconds]
19:42
cahoots_ has quit [Ping timeout: 256 seconds]
19:42
jimeh has quit [Remote host closed the connection]
19:43
jimeh has joined #ruby
19:48
lim has joined #ruby
20:41
cahoots has joined #ruby
20:45
cahoots has quit [Ping timeout: 256 seconds]
20:51
eddof13 has joined #ruby
21:04
___nick___ has quit [Ping timeout: 268 seconds]
21:07
perrierjouet has quit [Quit: WeeChat 3.4]
21:08
perrierjouet has joined #ruby
21:15
gproto23 has joined #ruby
21:17
cahoots has joined #ruby
21:44
cahoots has quit [Ping timeout: 268 seconds]
21:47
lim has quit [Remote host closed the connection]
21:48
lim has joined #ruby
21:53
BSaboia has quit [Quit: This computer has gone to sleep]
21:58
gproto23 has quit [Quit: Leaving]
22:10
lim has quit [Remote host closed the connection]
22:10
lim has joined #ruby
22:10
068AAF6WV has joined #ruby
22:15
068AAF6WV has quit [Ping timeout: 240 seconds]
22:27
cahoots has joined #ruby
22:31
<
havenwood >
cahoots: you can make a little I/O wapper that delegates to both and point spawn to that.
22:31
BSaboia has joined #ruby
22:31
cahoots has quit [Ping timeout: 250 seconds]
22:42
cahoots has joined #ruby
23:01
oxfuxxx has quit [Ping timeout: 268 seconds]
23:09
victori has joined #ruby
23:12
mahlon_ has joined #ruby
23:13
In0perable has joined #ruby
23:15
yos has joined #ruby
23:15
yos has quit [Changing host]
23:15
yos has joined #ruby
23:16
dka_ has joined #ruby
23:17
perrierjouet has quit [*.net *.split]
23:17
jimeh has quit [*.net *.split]
23:17
brw has quit [*.net *.split]
23:17
swaggboi has quit [*.net *.split]
23:17
jmcgnh has quit [*.net *.split]
23:17
yossarian has quit [*.net *.split]
23:17
mahlon has quit [*.net *.split]
23:17
aighearach has quit [*.net *.split]
23:17
kapil has quit [*.net *.split]
23:17
nyuszika7h has quit [*.net *.split]
23:17
Inoperable has quit [*.net *.split]
23:17
dka has quit [*.net *.split]
23:17
vigumnov has quit [*.net *.split]
23:17
finsternis has quit [*.net *.split]
23:17
yosafbridge has quit [*.net *.split]
23:17
_axx has quit [*.net *.split]
23:17
keyvan has quit [*.net *.split]
23:17
jtperreault has quit [*.net *.split]
23:17
cout has quit [*.net *.split]
23:17
valeness has quit [*.net *.split]
23:17
eam has quit [*.net *.split]
23:17
adam12 has quit [*.net *.split]
23:17
markmarkmark has quit [*.net *.split]
23:17
ccooke has quit [*.net *.split]
23:17
farhad has joined #ruby
23:18
somekool has joined #ruby
23:18
farhad has quit [Client Quit]
23:20
brw has joined #ruby
23:20
finsternis has joined #ruby
23:20
perrierjouet has joined #ruby
23:20
eam has joined #ruby
23:20
swaggboi has joined #ruby
23:20
cout has joined #ruby
23:20
kapil has joined #ruby
23:20
aighearach has joined #ruby
23:20
yosafbridge has joined #ruby
23:20
nyuszika7h has joined #ruby
23:20
jmcgnh has joined #ruby
23:20
_axx has joined #ruby
23:20
jtperreault has joined #ruby
23:20
adam12 has joined #ruby
23:20
valeness has joined #ruby
23:20
keyvan has joined #ruby
23:20
markmarkmark has joined #ruby
23:20
ccooke has joined #ruby
23:20
finsternis has quit [Max SendQ exceeded]
23:20
jmcgnh has quit [Max SendQ exceeded]
23:20
brw has quit [Max SendQ exceeded]
23:20
finsternis has joined #ruby
23:20
brw has joined #ruby
23:24
jimeh has joined #ruby
23:30
jmcgnh has joined #ruby
23:31
_ht has quit [Remote host closed the connection]
23:39
Feriun has joined #ruby
23:40
Feriun has left #ruby [#ruby]
23:54
lim has quit [Ping timeout: 256 seconds]
23:57
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]