00:00
drumond19 has quit [Ping timeout: 244 seconds]
00:01
savage- has quit [Quit: savage-]
00:02
CaptainJet has joined #ruby-lang
00:12
toretore has quit [Quit: Leaving]
00:13
kurko_ has quit [Ping timeout: 252 seconds]
00:13
havenn has joined #ruby-lang
00:14
stardiviner has joined #ruby-lang
00:14
samuelkadolph has quit [Quit: Quitting]
00:15
kurko_ has joined #ruby-lang
00:15
samuelkadolph has joined #ruby-lang
00:16
sailias has joined #ruby-lang
00:16
davidbalbert is now known as davidbalber|away
00:19
Aria has joined #ruby-lang
00:21
kurko_ has quit [Ping timeout: 252 seconds]
00:23
kurko_ has joined #ruby-lang
00:25
drumond19 has joined #ruby-lang
00:27
sailias has quit [Quit: Leaving.]
00:29
drumond19 has quit [Remote host closed the connection]
00:29
drumond19 has joined #ruby-lang
00:30
apeiros has quit [Read error: Connection reset by peer]
00:30
apeiros_ has joined #ruby-lang
00:32
brianpWins has joined #ruby-lang
00:33
tenderlove has joined #ruby-lang
00:33
tenderlove has quit [Remote host closed the connection]
00:33
tenderlove has joined #ruby-lang
00:34
kurko_ has quit [Ping timeout: 260 seconds]
00:34
brianpWins has quit [Client Quit]
00:36
kurko_ has joined #ruby-lang
00:37
Madis has quit [Remote host closed the connection]
00:39
gix has quit [Ping timeout: 260 seconds]
00:42
kurko_ has quit [Ping timeout: 252 seconds]
00:43
gix has joined #ruby-lang
00:43
kurko_ has joined #ruby-lang
00:44
qpingu has joined #ruby-lang
00:45
AndChat| has quit [Remote host closed the connection]
00:46
chendo_ has quit [Ping timeout: 252 seconds]
00:46
chimkan has quit [Quit: chimkan]
00:47
anachronistic has joined #ruby-lang
00:48
chendo_ has joined #ruby-lang
00:49
lcdhoffman has quit [Quit: lcdhoffman]
00:50
sepp2k1 has quit [Remote host closed the connection]
00:51
jmeeuwen has quit [Ping timeout: 248 seconds]
00:54
kurko_ has quit [Ping timeout: 255 seconds]
00:55
uuair has joined #ruby-lang
00:55
kurko_ has joined #ruby-lang
00:57
savage- has joined #ruby-lang
00:59
swarley has quit [Ping timeout: 240 seconds]
01:00
xalei has joined #ruby-lang
01:00
kurko_ has quit [Ping timeout: 252 seconds]
01:00
swarley has joined #ruby-lang
01:01
kurko_ has joined #ruby-lang
01:01
mistym has joined #ruby-lang
01:01
mistym has quit [Changing host]
01:01
mistym has joined #ruby-lang
01:01
earthquake has quit [Quit: earthquake]
01:02
jmeeuwen has joined #ruby-lang
01:06
blazes816 has joined #ruby-lang
01:07
havenn has quit [Remote host closed the connection]
01:08
chendo_ has quit [Quit: Leaving...]
01:10
spuk has quit [Changing host]
01:10
spuk has joined #ruby-lang
01:11
wyhaines has joined #ruby-lang
01:12
justinmcp has quit [Remote host closed the connection]
01:12
cyri_ has quit [Quit: cyri_]
01:12
chendo_ has joined #ruby-lang
01:12
kurko_ has quit [Ping timeout: 260 seconds]
01:12
justinmcp has joined #ruby-lang
01:13
apeiros_ has quit [Read error: Connection reset by peer]
01:14
kurko_ has joined #ruby-lang
01:14
apeiros_ has joined #ruby-lang
01:14
justinmc_ has joined #ruby-lang
01:14
uuair has quit [Remote host closed the connection]
01:15
uuair has joined #ruby-lang
01:15
VegetableSpoon has quit [Remote host closed the connection]
01:16
blazes816 has quit [Quit: blazes816]
01:17
justinmcp has quit [Ping timeout: 276 seconds]
01:22
kurko_ has quit [Ping timeout: 252 seconds]
01:24
kurko_ has joined #ruby-lang
01:26
davidbalber|away is now known as davidbalbert
01:28
swarley has quit [Ping timeout: 248 seconds]
01:29
qwerxy has quit [Quit: offski]
01:32
swarley has joined #ruby-lang
01:33
mantono has quit [Quit: Don't panic]
01:33
kurko_ has quit [Ping timeout: 260 seconds]
01:35
kurko_ has joined #ruby-lang
01:43
kurko_ has quit [Ping timeout: 252 seconds]
01:45
kurko_ has joined #ruby-lang
01:52
kurko_ has quit [Ping timeout: 260 seconds]
01:53
kurko_ has joined #ruby-lang
01:57
kurko_ has quit [Ping timeout: 255 seconds]
01:58
kurko_ has joined #ruby-lang
02:02
kurko_ has quit [Ping timeout: 252 seconds]
02:04
kurko_ has joined #ruby-lang
02:08
davidbalbert is now known as davidbalber|away
02:10
kurko_ has quit [Ping timeout: 260 seconds]
02:12
kurko_ has joined #ruby-lang
02:16
kurko_ has quit [Ping timeout: 252 seconds]
02:17
rue has quit [Remote host closed the connection]
02:19
sn0wb1rd has quit [Quit: sn0wb1rd]
02:22
Nisstyre-laptop has joined #ruby-lang
02:25
mwjcomputing has quit [Ping timeout: 260 seconds]
02:28
sn0wb1rd has joined #ruby-lang
02:30
kjr has joined #ruby-lang
02:31
kurko_ has joined #ruby-lang
02:34
sailias has joined #ruby-lang
02:34
dous has quit [Remote host closed the connection]
02:35
justinmc_ has quit [Remote host closed the connection]
02:35
justinmcp has joined #ruby-lang
02:35
kurko_ has quit [Ping timeout: 252 seconds]
02:36
roadt has joined #ruby-lang
02:37
gsav has joined #ruby-lang
02:37
kurko_ has joined #ruby-lang
02:37
gsav_ has joined #ruby-lang
02:37
gsav_ has quit [Client Quit]
02:40
justinmcp has quit [Ping timeout: 268 seconds]
02:41
uuair has quit [Quit: uuair]
02:41
savage- has quit [Quit: savage-]
02:41
kurko_ has quit [Ping timeout: 260 seconds]
02:43
kurko_ has joined #ruby-lang
02:43
kurko_ has quit [Client Quit]
02:46
kjr has quit [Quit: kjr]
02:52
swarley has quit [Ping timeout: 252 seconds]
02:55
sailias has quit [Ping timeout: 240 seconds]
02:57
asasin1234 has joined #ruby-lang
02:57
anachronistic has left #ruby-lang [#ruby-lang]
03:01
asasin1234 has quit [Client Quit]
03:01
asasin1234 has joined #ruby-lang
03:01
CaptainJet has quit []
03:03
Nisstyre-laptop has quit [Quit: Leaving]
03:03
asasin1234 has quit [Read error: Connection reset by peer]
03:03
asasin1234 has joined #ruby-lang
03:06
Nisstyre-laptop has joined #ruby-lang
03:07
asasin1234 has quit [Client Quit]
03:07
asasin1234 has joined #ruby-lang
03:11
stardiviner has joined #ruby-lang
03:13
<
apeiros_ >
only the syntax
03:13
asasin1234 has quit [Read error: Connection reset by peer]
03:14
<
stardiviner >
apeiros_: I see, thanks
03:14
asasin1234 has joined #ruby-lang
03:16
dous has joined #ruby-lang
03:16
asasin1234 has quit [Read error: Connection reset by peer]
03:16
dous has quit [Changing host]
03:16
dous has joined #ruby-lang
03:16
asasin1234 has joined #ruby-lang
03:16
asasin1234 has quit [Client Quit]
03:18
apeiros_ has quit [Remote host closed the connection]
03:25
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
03:27
rue has joined #ruby-lang
03:27
Nisstyre-laptop has joined #ruby-lang
03:29
kurko_ has joined #ruby-lang
03:32
rue has quit [Ping timeout: 248 seconds]
03:34
kurko_ has quit [Ping timeout: 252 seconds]
03:35
kurko_ has joined #ruby-lang
03:37
ivanoats has joined #ruby-lang
03:37
ivanoats has quit [Changing host]
03:37
ivanoats has joined #ruby-lang
03:38
thone_ has joined #ruby-lang
03:42
thone has quit [Ping timeout: 245 seconds]
03:42
xalei_ has joined #ruby-lang
03:44
kurko_ has quit [Ping timeout: 260 seconds]
03:44
xalei has quit [Ping timeout: 256 seconds]
03:45
kurko_ has joined #ruby-lang
03:49
kurko_ has quit [Ping timeout: 252 seconds]
03:51
kurko_ has joined #ruby-lang
03:56
kurko_ has quit [Ping timeout: 260 seconds]
03:57
Serial_Killer_C has joined #ruby-lang
03:57
kurko_ has joined #ruby-lang
03:57
anannie has joined #ruby-lang
03:57
Serial_Killer_C has quit [Remote host closed the connection]
04:00
faces has joined #ruby-lang
04:01
kurko_ has quit [Ping timeout: 252 seconds]
04:02
savage- has joined #ruby-lang
04:05
gsav has quit [Read error: Connection reset by peer]
04:07
kurko_ has joined #ruby-lang
04:10
chimkan has joined #ruby-lang
04:10
wyhaines has quit [Ping timeout: 252 seconds]
04:12
wyhaines has joined #ruby-lang
04:16
Dreamer3 has quit [Quit: Computer has gone to sleep.]
04:17
kurko_ has quit [Quit: Computer has gone to sleep.]
04:21
kurko_ has joined #ruby-lang
04:26
kurko_ has quit [Ping timeout: 252 seconds]
04:27
kurko_ has joined #ruby-lang
04:27
methods has quit [Read error: Operation timed out]
04:28
apeiros_ has joined #ruby-lang
04:32
davidbalber|away is now known as davidbalbert
04:32
wyhaines has quit [Read error: No route to host]
04:33
wyhaines has joined #ruby-lang
04:33
apeiros_ has quit [Ping timeout: 255 seconds]
04:34
kurko_ has quit [Ping timeout: 260 seconds]
04:34
methods has joined #ruby-lang
04:34
wyhaines has quit [Read error: Connection reset by peer]
04:35
anannie has quit [Ping timeout: 244 seconds]
04:35
wyhaines has joined #ruby-lang
04:37
gsav has joined #ruby-lang
04:39
macmartine has joined #ruby-lang
04:45
chimkan has quit [Quit: chimkan]
04:50
davidbalbert is now known as davidbalber|away
04:51
slyphon has quit [Ping timeout: 245 seconds]
04:55
nertzy has joined #ruby-lang
05:02
phaedrix has joined #ruby-lang
05:03
bluepojo has joined #ruby-lang
05:04
chimkan has joined #ruby-lang
05:11
xalei_ has left #ruby-lang [#ruby-lang]
05:11
xalei has joined #ruby-lang
05:20
earthquake has joined #ruby-lang
05:22
chimkan has quit [Quit: chimkan]
05:29
ivanoats has quit [Remote host closed the connection]
05:31
ryanf_ has joined #ruby-lang
05:34
r0bby has joined #ruby-lang
05:37
robbyoconnor has quit [Ping timeout: 244 seconds]
05:41
svyatov has quit [Quit: svyatov]
05:42
r0bby_ has joined #ruby-lang
05:43
r0bby has quit [Ping timeout: 264 seconds]
05:44
Aria has quit [Remote host closed the connection]
05:46
r0bby_ is now known as robbyoconnor
05:55
ryanf_ has quit [Quit: broken pipes |||]
05:57
sush24 has joined #ruby-lang
05:59
ivanoats has joined #ruby-lang
05:59
ivanoats has quit [Changing host]
05:59
ivanoats has joined #ruby-lang
06:01
Torrieri has joined #ruby-lang
06:01
Torrieri has quit [Changing host]
06:01
Torrieri has joined #ruby-lang
06:05
wyhaines_ has joined #ruby-lang
06:05
wyhaines has quit [Read error: Connection reset by peer]
06:06
Torrieri has quit [Quit: Saliendo]
06:07
ivanoats has quit [Read error: Connection reset by peer]
06:08
justinmcp has joined #ruby-lang
06:08
ivanoats has joined #ruby-lang
06:08
ivanoats has quit [Changing host]
06:08
ivanoats has joined #ruby-lang
06:09
bluepojo has quit [Quit: Leaving.]
06:10
Swimming_Bird has joined #ruby-lang
06:11
gsav has quit [Read error: Connection reset by peer]
06:11
<
Swimming_Bird >
Is there a programatic way to determine if a class is within a particular namespace
06:12
ivanoats has quit [Ping timeout: 240 seconds]
06:13
ivanoats has joined #ruby-lang
06:13
ivanoats has quit [Changing host]
06:13
ivanoats has joined #ruby-lang
06:14
gsav has joined #ruby-lang
06:15
wyhaines_ has quit [Ping timeout: 264 seconds]
06:17
earthquake has quit [Quit: earthquake]
06:17
charliesome has joined #ruby-lang
06:18
ivanoats has quit [Ping timeout: 256 seconds]
06:18
wyhaines has joined #ruby-lang
06:20
wyhaines_ has joined #ruby-lang
06:20
wyhaines has quit [Read error: Connection reset by peer]
06:22
wyhaines has joined #ruby-lang
06:22
wyhaines_ has quit [Read error: Connection reset by peer]
06:23
irclog0 has quit [Read error: Connection reset by peer]
06:23
irclog0 has joined #ruby-lang
06:24
ivanoats has joined #ruby-lang
06:24
ivanoats has joined #ruby-lang
06:24
ivanoats has quit [Changing host]
06:28
fsvehla has joined #ruby-lang
06:29
ivanoats has quit [Ping timeout: 276 seconds]
06:30
ivanoats has joined #ruby-lang
06:30
ivanoats has quit [Changing host]
06:30
ivanoats has joined #ruby-lang
06:31
gregmoreno has quit [Ping timeout: 246 seconds]
06:32
ivanoats has quit [Read error: Connection reset by peer]
06:32
sustainableweb has joined #ruby-lang
06:33
justinmcp has quit [Remote host closed the connection]
06:33
justinmcp has joined #ruby-lang
06:34
gregmoreno has joined #ruby-lang
06:34
ivanoats has joined #ruby-lang
06:34
ivanoats has quit [Changing host]
06:34
ivanoats has joined #ruby-lang
06:36
sustainableweb has quit [Ping timeout: 256 seconds]
06:38
justinmcp has quit [Ping timeout: 256 seconds]
06:38
ivanoats has quit [Ping timeout: 260 seconds]
06:40
mistym has quit [Remote host closed the connection]
06:42
dhruvasagar has joined #ruby-lang
06:44
tenderlove has quit [Ping timeout: 248 seconds]
06:44
ivanoats has joined #ruby-lang
06:44
ivanoats has quit [Changing host]
06:44
ivanoats has joined #ruby-lang
06:45
tenderlove has joined #ruby-lang
06:48
dhruvasagar has quit [Ping timeout: 244 seconds]
06:49
ivanoats has quit [Ping timeout: 256 seconds]
06:49
dhruvasagar has joined #ruby-lang
06:50
tenderlove has quit [Ping timeout: 255 seconds]
06:52
tenderlove has joined #ruby-lang
07:02
wyhaines has quit [Remote host closed the connection]
07:07
ryanf has quit [Quit: leaving]
07:09
methods has quit [Quit: Leaving.]
07:10
nazty has quit [Read error: Connection reset by peer]
07:10
nazty has joined #ruby-lang
07:11
rue has joined #ruby-lang
07:15
ivanoats has joined #ruby-lang
07:15
ivanoats has quit [Changing host]
07:15
ivanoats has joined #ruby-lang
07:16
datanoise has joined #ruby-lang
07:16
nertzy has quit [Quit: This computer has gone to sleep]
07:16
ivanoats has quit [Read error: Connection reset by peer]
07:17
ivanoats has joined #ruby-lang
07:19
areil has joined #ruby-lang
07:20
datanoise has quit [Ping timeout: 245 seconds]
07:21
ivanoats has quit [Ping timeout: 252 seconds]
07:23
Stereoki1sune has quit [Remote host closed the connection]
07:24
cschwartz has joined #ruby-lang
07:25
dhruvasagar has quit [Ping timeout: 255 seconds]
07:27
Stereokitsune has joined #ruby-lang
07:27
solars has joined #ruby-lang
07:27
Stereokitsune has quit [Client Quit]
07:27
Stereokitsune has joined #ruby-lang
07:27
ivanoats has joined #ruby-lang
07:27
ivanoats has quit [Changing host]
07:27
ivanoats has joined #ruby-lang
07:28
Stereokitsune has quit [Client Quit]
07:29
Stereokitsune has joined #ruby-lang
07:30
thinkdevcode has quit [Remote host closed the connection]
07:32
ivanoats has quit [Ping timeout: 248 seconds]
07:33
sush24 has quit [Quit: This computer has gone to sleep]
07:40
solars has quit [Ping timeout: 276 seconds]
07:41
savage- has quit [Quit: savage-]
07:44
sush24 has joined #ruby-lang
07:44
sush24 has quit [Client Quit]
07:56
solars has joined #ruby-lang
08:00
sush24 has joined #ruby-lang
08:01
dc5ala has joined #ruby-lang
08:01
gsav has quit [Read error: Connection reset by peer]
08:03
justinmcp has joined #ruby-lang
08:05
cschwartz has quit [Ping timeout: 246 seconds]
08:07
tenderlove has quit [Remote host closed the connection]
08:08
tenderlove has joined #ruby-lang
08:15
Guest15771 has joined #ruby-lang
08:15
ivanoats has joined #ruby-lang
08:15
ivanoats has quit [Changing host]
08:15
ivanoats has joined #ruby-lang
08:17
sustainableweb has joined #ruby-lang
08:17
ivanoats has quit [Read error: Connection reset by peer]
08:17
datanoise has joined #ruby-lang
08:20
sush24 has quit [Quit: Leaving]
08:21
sustainableweb has quit [Ping timeout: 260 seconds]
08:26
datanoise has quit [Ping timeout: 265 seconds]
08:27
sush24 has joined #ruby-lang
08:27
ivanoats has joined #ruby-lang
08:27
ivanoats has quit [Changing host]
08:27
ivanoats has joined #ruby-lang
08:29
gsav has joined #ruby-lang
08:32
ivanoats has quit [Ping timeout: 256 seconds]
08:36
justinmcp has quit [Remote host closed the connection]
08:37
justinmcp has joined #ruby-lang
08:38
ivanoats has joined #ruby-lang
08:38
ivanoats has quit [Changing host]
08:38
ivanoats has joined #ruby-lang
08:39
blacktulip has joined #ruby-lang
08:41
justinmcp has quit [Ping timeout: 260 seconds]
08:43
ivanoats has quit [Ping timeout: 264 seconds]
08:49
ivanoats has joined #ruby-lang
08:49
ivanoats has quit [Changing host]
08:49
ivanoats has joined #ruby-lang
08:52
qwerxy has joined #ruby-lang
08:53
ivanoats has quit [Ping timeout: 256 seconds]
08:59
ivanoats has joined #ruby-lang
08:59
ivanoats has quit [Changing host]
08:59
ivanoats has joined #ruby-lang
09:02
kitallis has joined #ruby-lang
09:04
ivanoats has quit [Ping timeout: 256 seconds]
09:06
cschwartz has joined #ruby-lang
09:07
irleif has joined #ruby-lang
09:12
sush24 has quit [Quit: This computer has gone to sleep]
09:13
dhruvasagar has joined #ruby-lang
09:25
workmad3 has joined #ruby-lang
09:28
qpingu has quit [Quit: Leaving.]
09:30
ivanoats has joined #ruby-lang
09:30
ivanoats has quit [Changing host]
09:30
ivanoats has joined #ruby-lang
09:39
kjr has joined #ruby-lang
09:40
ivanoats has quit [Ping timeout: 256 seconds]
09:41
ivanoats has joined #ruby-lang
09:42
Madis has joined #ruby-lang
09:44
irleif has quit [Quit: Computer has gone to sleep.]
09:44
wallerdev has quit [Quit: wallerdev]
09:45
ivanoats has quit [Read error: Operation timed out]
09:50
kjr has quit [Quit: kjr]
09:51
sush24 has joined #ruby-lang
09:52
swarley has joined #ruby-lang
09:54
irleif has joined #ruby-lang
09:55
jarib has quit [Excess Flood]
09:55
jarib has joined #ruby-lang
09:59
justinmcp has joined #ruby-lang
10:10
lele has quit [Quit: Coyote finally caught me]
10:10
jxie has quit [Quit: leaving]
10:13
lele has joined #ruby-lang
10:14
swarley has quit [Read error: Connection reset by peer]
10:22
datanoise has joined #ruby-lang
10:26
ruurd has joined #ruby-lang
10:27
datanoise has quit [Ping timeout: 260 seconds]
10:27
dhruvasagar has quit [Ping timeout: 248 seconds]
10:28
jarib has quit [Excess Flood]
10:30
ivanoats has joined #ruby-lang
10:30
ivanoats has quit [Changing host]
10:30
ivanoats has joined #ruby-lang
10:33
jarib has joined #ruby-lang
10:38
slyphon has joined #ruby-lang
10:40
dhruvasagar has joined #ruby-lang
10:41
ivanoats has quit [Ping timeout: 252 seconds]
10:41
sush24 has quit [Quit: This computer has gone to sleep]
10:44
jxie has joined #ruby-lang
10:45
workmad3 has quit [Ping timeout: 252 seconds]
10:45
adambeynon has joined #ruby-lang
10:51
poga has quit [Remote host closed the connection]
10:51
cschwart1 has joined #ruby-lang
10:52
Assurbanipal has joined #ruby-lang
10:54
cschwartz has quit [Ping timeout: 255 seconds]
11:01
cyri_ has joined #ruby-lang
11:05
dhruvasagar has quit [Ping timeout: 244 seconds]
11:05
cschwart1 has quit [Ping timeout: 248 seconds]
11:07
justinmcp has quit [Remote host closed the connection]
11:07
justinmcp has joined #ruby-lang
11:08
qwerxy has quit [Quit: offski]
11:11
apeiros_ has joined #ruby-lang
11:12
justinmcp has quit [Ping timeout: 255 seconds]
11:13
sepp2k has joined #ruby-lang
11:14
ivanoats has joined #ruby-lang
11:14
Mchl has joined #ruby-lang
11:15
ivanoats has quit [Read error: Connection reset by peer]
11:15
ivanoats has joined #ruby-lang
11:17
Guest15771 has left #ruby-lang [#ruby-lang]
11:20
ivanoats has quit [Ping timeout: 252 seconds]
11:21
qwerxy has joined #ruby-lang
11:21
cschwartz has joined #ruby-lang
11:22
yorickpeterse is now known as yorick-test
11:23
yorick-test is now known as yorickpeterse
11:23
dhruvasagar has joined #ruby-lang
11:26
ivanoats has joined #ruby-lang
11:26
ivanoats has quit [Changing host]
11:26
ivanoats has joined #ruby-lang
11:28
slyphon has quit [Ping timeout: 245 seconds]
11:30
ivanoats has quit [Ping timeout: 256 seconds]
11:30
slyphon has joined #ruby-lang
11:40
Assurbanipal has quit [Read error: Connection reset by peer]
11:44
ivanoats has joined #ruby-lang
11:44
ivanoats has quit [Changing host]
11:44
ivanoats has joined #ruby-lang
11:45
sustainableweb has joined #ruby-lang
11:45
ivanoats has quit [Read error: Connection reset by peer]
11:46
sustainableweb has quit [Read error: Connection reset by peer]
11:46
ivanoats has joined #ruby-lang
11:46
ivanoats has quit [Changing host]
11:46
ivanoats has joined #ruby-lang
11:46
slyphon has quit [Ping timeout: 245 seconds]
11:50
ivanoats has quit [Ping timeout: 248 seconds]
11:54
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
11:54
<
manveru >
Swimming_Bird: like?
11:55
<
manveru >
iota ~ % ruby -e 'p Module.constants.include?(:Process)'
11:55
<
manveru >
better late than never :)
11:56
dhruvasagar has quit [Ping timeout: 240 seconds]
11:56
ivanoats has joined #ruby-lang
11:56
ivanoats has quit [Changing host]
11:56
ivanoats has joined #ruby-lang
11:58
slyphon has joined #ruby-lang
11:58
cschwartz has quit [Ping timeout: 264 seconds]
12:01
ivanoats has quit [Ping timeout: 256 seconds]
12:03
slyphon has quit [Ping timeout: 245 seconds]
12:04
slyphon has joined #ruby-lang
12:14
mhag has quit [Read error: Connection reset by peer]
12:15
mhag has joined #ruby-lang
12:16
kitallis has joined #ruby-lang
12:18
rolfb has joined #ruby-lang
12:19
justinmcp has joined #ruby-lang
12:20
justinmcp has quit [Remote host closed the connection]
12:20
justinmcp has joined #ruby-lang
12:23
justinmc_ has joined #ruby-lang
12:23
datanoise has joined #ruby-lang
12:25
justinmcp has quit [Ping timeout: 246 seconds]
12:25
robbyoconnor has quit [Quit: Konversation terminated!]
12:26
robbyoconnor has joined #ruby-lang
12:26
cyri_ has quit [Quit: cyri_]
12:27
ivanoats has joined #ruby-lang
12:28
datanoise has quit [Ping timeout: 248 seconds]
12:32
ivanoats has quit [Ping timeout: 260 seconds]
12:34
gregmoreno has quit [Read error: Connection reset by peer]
12:34
gregmoreno has joined #ruby-lang
12:36
roadt_ has joined #ruby-lang
12:37
mwjcomputing has joined #ruby-lang
12:38
ivanoats has joined #ruby-lang
12:38
ivanoats has quit [Read error: Connection reset by peer]
12:38
ivanoats has joined #ruby-lang
12:39
roadt has quit [Ping timeout: 256 seconds]
12:39
ivanoats has quit [Read error: Connection reset by peer]
12:39
ivanoats has joined #ruby-lang
12:39
ivanoats has quit [Changing host]
12:39
ivanoats has joined #ruby-lang
12:44
justinmc_ has quit [Remote host closed the connection]
12:44
ivanoats has quit [Ping timeout: 252 seconds]
12:44
justinmcp has joined #ruby-lang
12:48
justinmcp has quit [Ping timeout: 240 seconds]
12:50
cyri_ has joined #ruby-lang
12:50
x0F has quit [Disconnected by services]
12:50
x0F_ has joined #ruby-lang
12:50
x0F_ is now known as x0F
12:50
Axsuul has quit [Ping timeout: 246 seconds]
12:50
ivanoats has joined #ruby-lang
12:50
ivanoats has quit [Changing host]
12:50
ivanoats has joined #ruby-lang
12:51
ruurd has quit [Quit: Leaving...]
12:51
toretore has joined #ruby-lang
12:54
ivanoats has quit [Ping timeout: 246 seconds]
12:57
cschwartz has joined #ruby-lang
12:57
mwjcomputing has quit [Read error: Connection reset by peer]
12:58
slyphon has quit [Ping timeout: 245 seconds]
12:59
cyri_ has quit [Quit: cyri_]
13:05
slyphon has joined #ruby-lang
13:07
rindolf has joined #ruby-lang
13:10
<
rindolf >
Hi all, with pry with ruby-1.8.7.p358-1.1.mga2 on Mageia Linux 2 x86-64 I get: [62] pry(main)> help break
13:10
<
rindolf >
Error: No help found for 'break'
13:10
<
rindolf >
How do I use break?
13:10
<
rindolf >
I tried break 570 and got LocalJumpError: unexpected break
13:10
davidbalber|away is now known as davidbalbert
13:12
<
apeiros_ >
break is syntax, which is probably why pry's help doesn't tell you anything about it
13:12
<
rindolf >
apeiros_: ah, how do I set a breakpoint?
13:12
sandbags has joined #ruby-lang
13:12
sandbags has quit [Changing host]
13:12
sandbags has joined #ruby-lang
13:12
<
apeiros_ >
you use break to return from a block. break (unlike next) does not give back control to the yielding method.
13:13
<
apeiros_ >
ah, break has
*nothing* to do with debugging
13:13
<
apeiros_ >
and no idea, how to set a breakpoint would depend on the tool you use to debug
13:13
<
tocki_ >
put binding.pry where you want to invoke console
13:13
<
tocki_ >
make sure 'pry' is required beforehand
13:14
<
rindolf >
tocki_: so I need to change the code?
13:15
<
tocki_ >
hmmz.. you can monkey patch this call too
13:16
<
rindolf >
tocki_: that sucks.
13:16
<
tocki_ >
maybe someone here knows more
13:16
<
rindolf >
tocki_: OK, I set up a breakpoint, how do I tell pry to just run?
13:17
<
rindolf >
I tried "run" , "r", "c", "continue" - nada.
13:18
<
sandbags >
rindolf: try the "help" command for pry
13:21
<
rindolf >
sandbags: tried it - did not find anything there.
13:21
<
rindolf >
tocki_: I think ruby-debug does not work properly in ruby-1.9.x
13:22
<
tocki_ >
pry is better with introspection
13:22
<
rindolf >
tocki_: ah, OK, let me try.
13:23
<
sandbags >
if you're in basic pry i don't think you can step so you just use "exit" to pop the pry
13:25
<
rindolf >
tocki_: OK, one problem solved.
13:26
<
tocki_ >
there you go :)
13:26
<
rindolf >
sandbags, tocki_ : now when I run pry with an rspec script it terminates without running the code, and does not reach the breakpoint, and when I exit it, only
*then* it runs all the tests.
13:26
cschwartz has quit [Ping timeout: 255 seconds]
13:28
<
tocki_ >
how do you run pry with rspec script ?
13:28
<
tocki_ >
binding.pry ?
13:29
<
tocki_ >
ttilley, cool
13:29
<
rindolf >
tocki_: I didn't try - I used a different debugger until now.
13:30
<
rindolf >
ttilley: is it pry-debugger or pry_debug?
13:30
adambeynon has quit [Quit: Computer has gone to sleep.]
13:30
<
ttilley >
pry-debugger
13:30
<
tocki_ >
rindolf, try binding.pry
13:31
<
tocki_ >
hmmz.. seems that pry-debugger is not thread safe
13:31
laszlokorte_ has joined #ruby-lang
13:32
cyri_ has joined #ruby-lang
13:32
ivanoats has joined #ruby-lang
13:32
<
rindolf >
tocki_: I tried -seems like pry_debug was unloaded when it reached that.
13:32
ivanoats has quit [Read error: Connection reset by peer]
13:32
sustainableweb has joined #ruby-lang
13:33
sustainableweb has quit [Read error: Connection reset by peer]
13:33
<
tocki_ >
have you required 'pry' ?
13:33
ivanoats has joined #ruby-lang
13:33
ivanoats has quit [Changing host]
13:33
ivanoats has joined #ruby-lang
13:33
laszlokorte has quit [Ping timeout: 256 seconds]
13:33
laszlokorte_ is now known as laszlokorte
13:34
rolfb has quit [Quit: Leaving...]
13:35
<
rindolf >
tocki_: I required both "pry" and "pry_debug".
13:35
<
rindolf >
If someone has a suggestion for a test unit framework that is more pry friendly and works on ruby-1.8.7 and ruby-1.9.x, I'm open for suggestions.
13:36
svyatov has joined #ruby-lang
13:36
<
rindolf >
tocki_: with both "pry" and "pry_debug", required I'm still getting the same problem.
13:37
mwjcomputing has joined #ruby-lang
13:38
ivanoats has quit [Ping timeout: 244 seconds]
13:38
slyphon has quit [Ping timeout: 245 seconds]
13:39
<
tocki_ >
rindolf, works on my box, just tested
13:39
<
rindolf >
tocki_: are you using ruby-1.9.x?
13:40
<
rindolf >
tocki_: OK, I'm using ruby-1.8.x
13:40
<
rindolf >
tocki_: maybe I should upgrade.
13:40
<
rindolf >
ruby-1.8.x seems FUBAR.
13:40
rolfb has joined #ruby-lang
13:40
Kichael has quit [Ping timeout: 260 seconds]
13:40
<
tocki_ >
yep, its getting older
13:41
<
tocki_ >
you might be interested with ruby-debug on 1.8.x
13:43
Nisstyre-laptop has joined #ruby-lang
13:43
xalei has quit [Remote host closed the connection]
13:44
<
rindolf >
tocki_: thanks.
13:44
<
rindolf >
tocki_: that's OK, I'll install ruby-1.9.3.
13:44
ivanoats has joined #ruby-lang
13:44
ivanoats has quit [Changing host]
13:44
ivanoats has joined #ruby-lang
13:48
Hakon has joined #ruby-lang
13:49
ivanoats has quit [Ping timeout: 256 seconds]
13:49
Kichael has joined #ruby-lang
13:52
qwerxy has quit [Quit: offski]
13:52
irleif has quit [Quit: Computer has gone to sleep.]
13:56
svyatov has quit [Quit: svyatov]
13:58
<
rindolf >
Wow, doxygen consume 17% of my RAM.
13:58
<
rindolf >
Wow, doxygen consumes* 17% of my RAM.
14:01
<
rindolf >
Now gem gives me: It seems your ruby installation is missing psych (for YAML output).
14:01
<
rindolf >
To eliminate this warning, please install libyaml and reinstall your ruby.
14:02
<
rindolf >
I installed libyaml-devel and rebuilt ruby and I'm still getting that. Why???
14:02
wyhaines has joined #ruby-lang
14:02
irleif has joined #ruby-lang
14:05
Nisstyre-laptop has quit [Ping timeout: 265 seconds]
14:09
KU0N has joined #ruby-lang
14:11
rolfb has quit [Quit: Leaving...]
14:15
savage- has joined #ruby-lang
14:17
<
tocki_ >
is there a way to add a method to object without using singleton-methods ?
14:17
<
rindolf >
tocki_: ttilley : thanks! I Figured everything out now. I installed ruby-1.9.x and now pry works fine with pry-debugging.
14:17
<
ttilley >
rindolf: glad to be of service
14:17
<
tocki_ >
np rindolf :)
14:18
<
ttilley >
rindolf: now look at pry-remote and have your mind blown. connecting to a remote process and debugging it that way, with all the conveniences of pry (i love show-source, etc)
14:19
<
ttilley >
there's a cute little extension that pretty prints numbers in ruby compatible syntax for you... forget the name. so any output like 12345 will be 12_345
14:19
<
ttilley >
easier to read
14:19
<
tocki_ >
thats very nice
14:20
<
apeiros_ >
tocki_: Object#extend + modules
14:20
qwerxy has joined #ruby-lang
14:21
qwerxy has quit [Client Quit]
14:21
<
tocki_ >
it still adds singleton_methods
14:22
Hakon has quit [Ping timeout: 244 seconds]
14:22
<
tocki_ >
is there a way to do what Class object does... inject another object with methods, directly into 'methods' list ?
14:23
<
apeiros_ >
tocki_: no
14:23
<
apeiros_ >
it does not
14:24
<
tocki_ >
hmmz.. actually the question is - can Class object be implemented in pure ruby
14:24
robbyoconnor has quit [Read error: Connection reset by peer]
14:25
robbyoconnor has joined #ruby-lang
14:25
mwjcomputing has quit [Ping timeout: 265 seconds]
14:25
<
tocki_ >
besides evals, lambdas, methods and procs/blocks is there any other way to invoke (or pass) code in ruby ?
14:25
ivanoats has joined #ruby-lang
14:28
<
rindolf >
Hi all, is it possible to somehow print more diagnosis traces in rspec? Like diag() in Test::More in Perl? See
https://metacpan.org/module/Test::More#Diagnostics . If it's not possible can anyone recommend a Ruby test framework where it
*is* possible? I tried using puts and it didn't work.
14:29
<
tocki_ >
also, check ruby command line params
14:29
<
rindolf >
tocki_: that's not what I want.
14:30
<
rindolf >
tocki_: I want to emit stuff to the stderr/stdout/anything.
14:30
<
rindolf >
tocki_: arbitrary text (that won't affect the tests' results).
14:30
ivanoats has quit [Ping timeout: 260 seconds]
14:32
<
burgestrand >
puts work.
14:32
<
rindolf >
burgestrand: I don't see it when I run make teset
14:32
<
rindolf >
burgestrand: I don't see it when I run make test
14:32
<
burgestrand >
I do.
14:33
<
burgestrand >
rspec does not block your stdout, nor stderr, for printing.
14:33
<
tocki_ >
rindolf, check rake too
14:33
<
rindolf >
Or maybe it throws an exception?
14:33
<
rindolf >
tocki_: I'll get to rake some day.
14:34
<
burgestrand >
But what you linked to look more like an additional description for a spec that is only shown if the spec fails.
14:34
justinram has joined #ruby-lang
14:35
<
burgestrand >
I’m not aware of something like that for ruby. Don’t see the necessity of it either, most of your specs should be fairly small, so small that a description is borderline superfluous.
14:35
<
burgestrand >
(an additional description, that is)
14:36
<
tocki_ >
still, there is more than one way to do it
14:36
qwerxy has joined #ruby-lang
14:37
qwerxy has quit [Client Quit]
14:40
gareth- has joined #ruby-lang
14:41
<
rindolf >
OK, turns out it does throw an exception. After I wrapped it inside begin/rescue it is OK.
14:41
<
rindolf >
Thanks all.
14:41
GarethAdams has quit [Read error: Connection reset by peer]
14:42
ddd has joined #ruby-lang
14:44
<
rindolf >
tocki_: thanks.
14:45
<
rindolf >
tocki_: is should == an operator matcher?
14:48
<
tocki_ >
it checks if left & right are 'equal'
14:51
qwerxy has joined #ruby-lang
14:53
qwerxy has quit [Client Quit]
14:53
savage- has quit [Quit: savage-]
14:56
Mchl has joined #ruby-lang
14:56
ivanoats has joined #ruby-lang
14:58
fsvehla has quit [Quit: fsvehla]
15:00
ivanoats has quit [Ping timeout: 260 seconds]
15:02
Carnage\ has quit [Ping timeout: 248 seconds]
15:05
icooba has quit [Ping timeout: 252 seconds]
15:09
* cinch
is learning ruby
15:09
<
cinch >
dang that sudoku solver is hardcore in the introduction :P
15:10
icooba has joined #ruby-lang
15:10
<
cinch >
but pretty enlightening
15:11
sush24 has joined #ruby-lang
15:11
qwerxy has joined #ruby-lang
15:12
qwerxy has quit [Client Quit]
15:16
sush24 has quit [Client Quit]
15:16
tenderlo_ has joined #ruby-lang
15:16
sush24 has joined #ruby-lang
15:17
tenderlove has quit [Ping timeout: 240 seconds]
15:21
tenderlo_ has quit [Ping timeout: 264 seconds]
15:27
<
Swimming_Bird >
manveru: thanks, i should have thought of that
15:28
uuair has joined #ruby-lang
15:29
wyhaines_ has joined #ruby-lang
15:31
dabradley has quit [Ping timeout: 260 seconds]
15:31
wyhaines has quit [Ping timeout: 244 seconds]
15:31
<
tocki_ >
cinch, what sudokusolver ?
15:32
mistym has joined #ruby-lang
15:32
mistym has quit [Changing host]
15:32
mistym has joined #ruby-lang
15:32
dabradley has joined #ruby-lang
15:33
qwerxy has joined #ruby-lang
15:35
drumond19 has quit [Remote host closed the connection]
15:36
ivanoats has joined #ruby-lang
15:36
ivanoats has joined #ruby-lang
15:36
ivanoats has quit [Changing host]
15:37
wyhaines has joined #ruby-lang
15:38
wyhaines_ has quit [Read error: Connection reset by peer]
15:40
ivanoats has quit [Ping timeout: 240 seconds]
15:47
ivanoats has joined #ruby-lang
15:48
<
tsou >
cinch: have a look at this, completely different, and not ruby-ish, but enlightening indeed:
15:49
<
tsou >
whoops, ugly paste..
15:49
<
tsou >
there you go :)
15:50
canton7 has quit [Remote host closed the connection]
15:50
canton7 has joined #ruby-lang
15:51
ivanoats has quit [Ping timeout: 260 seconds]
15:52
qwerxy has quit [Quit: offski]
15:52
dabradley has quit [Ping timeout: 240 seconds]
15:57
ivanoats has joined #ruby-lang
15:57
ivanoats has quit [Changing host]
15:57
ivanoats has joined #ruby-lang
15:58
datanoise has joined #ruby-lang
16:00
uuair has quit [Ping timeout: 260 seconds]
16:02
qwerxy has joined #ruby-lang
16:02
ivanoats has quit [Ping timeout: 256 seconds]
16:02
wallerdev has joined #ruby-lang
16:03
datanoise has quit [Ping timeout: 255 seconds]
16:03
uuair has joined #ruby-lang
16:09
dabradley has joined #ruby-lang
16:16
CaptainJet has joined #ruby-lang
16:19
irleif has quit [Quit: Computer has gone to sleep.]
16:19
Mon_Ouie has quit [Ping timeout: 244 seconds]
16:21
earthquake has joined #ruby-lang
16:22
irleif has joined #ruby-lang
16:23
<
yorickpeterse >
beating a dead horse here but modules are pretty sweet
16:24
uglybandersnatch has joined #ruby-lang
16:24
<
andrewvos >
yorickpeterse: Why?
16:24
<
yorickpeterse >
TIL that you can use `super` when including modules when re-defining a method with the same name
16:24
<
yorickpeterse >
I always thought that would just overwrite it
16:26
<
andrewvos >
Wow cool, didn't know that.
16:28
<
yorickpeterse >
It makes it quite easy to write helper modules that can still be customized
*without* having to redefine the content of such a helper module
16:28
ivanoats has joined #ruby-lang
16:28
ivanoats has quit [Changing host]
16:28
ivanoats has joined #ruby-lang
16:29
sustainableweb has joined #ruby-lang
16:29
ivanoats has quit [Read error: Connection reset by peer]
16:29
sustainableweb has quit [Read error: Connection reset by peer]
16:30
ivanoats has joined #ruby-lang
16:30
dc5ala has quit [Quit: Ex-Chat]
16:30
ivanoats has quit [Read error: Connection reset by peer]
16:31
ivanoats has joined #ruby-lang
16:31
ivanoats has quit [Changing host]
16:31
ivanoats has joined #ruby-lang
16:31
datanoise has joined #ruby-lang
16:35
ivanoats has quit [Ping timeout: 251 seconds]
16:35
uglybandersnatch has left #ruby-lang [#ruby-lang]
16:36
tenderlove has joined #ruby-lang
16:36
TheDracle has quit [Ping timeout: 260 seconds]
16:36
tenderlove has quit [Remote host closed the connection]
16:36
TheDracle has joined #ruby-lang
16:39
laszlokorte has quit [Ping timeout: 244 seconds]
16:40
<
andrewvos >
yorickpeterse: Yeah I can't really imagine a situation where it would be a good thing to do.
16:40
<
andrewvos >
yorickpeterse: But I suppose in that situation it is alright
16:40
<
andrewvos >
yorickpeterse: Just, it would kind of hide behaviour.
16:40
uglybandersnatch has joined #ruby-lang
16:40
<
apeiros_ >
yorickpeterse: hm? overwrite? the module's method definition comes after the class' method definition…
16:41
ivanoats has joined #ruby-lang
16:41
ivanoats has quit [Changing host]
16:41
ivanoats has joined #ruby-lang
16:41
datanoise has quit [Read error: Operation timed out]
16:42
<
apeiros_ >
i.e., `module X; def bar; "X#bar"; end; end; class Y; include X; def bar; "Y#bar"; end; end; Y.new.bar # => 'Y#bar'`
16:43
<
apeiros_ >
or did I misunderstand what you said?
16:44
<
andrewvos >
I think you may have
16:44
<
andrewvos >
`module X; def bar; "X#bar"; end; end; class Y; include X; def bar; super; end; end; Y.new.bar # => 'X#bar'
16:44
<
andrewvos >
Is my interpretation.
16:45
<
andrewvos >
apeiros_: ^
16:45
<
apeiros_ >
ah, so he meant that the class' definition would overwrite the module's definition
16:45
<
apeiros_ >
yorickpeterse: modules are put into the ancestry of the class which includes them
16:46
<
apeiros_ >
which explains the super and the order
16:46
ivanoats has quit [Ping timeout: 240 seconds]
16:46
<
yorickpeterse >
apeiros_: yeah
16:47
<
apeiros_ >
also nice: defined? super
16:47
<
yorickpeterse >
I didn't expect include/extend to basically behave like extending a class
16:47
<
yorickpeterse >
Damn you matz and your cleverness
16:47
<
apeiros_ >
for the cases where you want to "hook" into a chain and not interrupt the original methods, but can't be sure whether there's an original method in the first place
16:50
methods has joined #ruby-lang
16:51
kjr has joined #ruby-lang
16:52
ivanoats has joined #ruby-lang
16:52
ivanoats has quit [Changing host]
16:52
ivanoats has joined #ruby-lang
16:52
qwerxy has quit [Quit: offski]
16:53
sustainableweb has joined #ruby-lang
16:53
ivanoats has quit [Read error: Connection reset by peer]
16:54
workmad3 has joined #ruby-lang
16:58
sustainableweb has quit [Ping timeout: 244 seconds]
16:58
gareth- has left #ruby-lang [#ruby-lang]
16:58
GarethAdams has joined #ruby-lang
16:59
intellitech has joined #ruby-lang
16:59
cschwartz has joined #ruby-lang
17:01
ivanoats has joined #ruby-lang
17:01
ivanoats has quit [Remote host closed the connection]
17:02
qwerxy has joined #ruby-lang
17:04
irleif has quit [Quit: Computer has gone to sleep.]
17:07
lcdhoffman has joined #ruby-lang
17:09
datanoise has joined #ruby-lang
17:09
ivanoats has joined #ruby-lang
17:09
ivanoats has quit [Changing host]
17:09
ivanoats has joined #ruby-lang
17:10
irleif has joined #ruby-lang
17:10
ivanoats has quit [Read error: Connection reset by peer]
17:10
sustainableweb has joined #ruby-lang
17:10
irleif has quit [Client Quit]
17:10
sustainableweb has quit [Read error: Connection reset by peer]
17:11
ivanoats has joined #ruby-lang
17:11
ivanoats has joined #ruby-lang
17:11
ivanoats has quit [Changing host]
17:11
ivanoats has quit [Read error: Connection reset by peer]
17:12
ivanoats has joined #ruby-lang
17:12
ivanoats has quit [Read error: Connection reset by peer]
17:12
ivanoats has joined #ruby-lang
17:13
ivanoats has quit [Read error: Connection reset by peer]
17:13
ivanoats has joined #ruby-lang
17:15
ivanoats has quit [Read error: Connection reset by peer]
17:19
banisterfiend has joined #ruby-lang
17:24
datanoise has quit [Ping timeout: 255 seconds]
17:29
ruurd has joined #ruby-lang
17:29
rushanuk has joined #ruby-lang
17:31
ruurd has quit [Client Quit]
17:35
workmad3 has quit [Ping timeout: 255 seconds]
17:35
fsvehla has joined #ruby-lang
17:38
banisterfiend has quit [Remote host closed the connection]
17:40
justinram has quit [Read error: Connection reset by peer]
17:40
justinra_ has joined #ruby-lang
17:41
dhruvasagar has joined #ruby-lang
17:41
anannie has joined #ruby-lang
17:43
areil has quit [Remote host closed the connection]
17:44
adambeynon has joined #ruby-lang
17:45
adambeynon has quit [Client Quit]
17:50
sepp2k has quit [Ping timeout: 256 seconds]
17:50
sepp2k has joined #ruby-lang
17:51
kurko_ has joined #ruby-lang
17:52
gsav has quit [Read error: Connection reset by peer]
17:53
kurko_ has quit [Client Quit]
17:54
earthquake has quit [Quit: earthquake]
17:56
ruskie has quit [Read error: Operation timed out]
18:01
KA_ has joined #ruby-lang
18:01
rushanuk has left #ruby-lang [#ruby-lang]
18:02
<
tocki_ >
apeiros_, i found way to insert stuff into .methods list
18:02
<
tocki_ >
is this jruby bug or some kind of undefined behavior ?
18:02
<
tocki_ >
cuz, MRI behaves differently
18:03
ruskie has joined #ruby-lang
18:03
<
methods >
hoping this is for ruby rvm ? I noticed that I don't seem to have `ri` docs for built in types like Array
18:03
<
methods >
oops ignore that first part copy/paste fail
18:04
<
methods >
I just notice that my rvm install, `ri Array` doesn't show me built in Array docs
18:04
earthquake has joined #ruby-lang
18:05
banisterfiend has joined #ruby-lang
18:05
<
apeiros_ >
tocki_: I don't think that does what you think it does.
18:06
<
apeiros_ >
but differences in behavior between mri and jruby should be reported to jruby
18:06
adambeynon has joined #ruby-lang
18:06
adambeynon has joined #ruby-lang
18:06
wyhaines has quit [Read error: Connection reset by peer]
18:07
savage- has joined #ruby-lang
18:07
wyhaines has joined #ruby-lang
18:07
<
tocki_ >
i did.. it seems that 1.9.3 mri behaves the same :S (but not 1.9.2 -- which throws error)
18:07
<
tocki_ >
apeiros_, is it supposed to execute without error ?
18:08
<
apeiros_ >
I think not
18:08
<
apeiros_ >
methods defined on main should only be callable from main
18:09
* apeiros_
rarely defines methods on main, as it's rarely the right thing to do
18:09
wyhaines has quit [Read error: Connection reset by peer]
18:09
<
tocki_ >
what is main ?
18:09
<
apeiros_ >
ruby -e 'p self'
18:09
wyhaines has joined #ruby-lang
18:09
<
tocki_ >
ok.. how would you expect this to work ?
18:09
<
tocki_ >
what is expected behavior ?
18:10
<
tocki_ >
this
_sure_ looks like a bug
18:10
aetcore has quit [Remote host closed the connection]
18:11
wyhaines has quit [Read error: Connection reset by peer]
18:11
<
apeiros_ >
hm, either that changed or I misremember (entirely possible, since, as said, I rarely define methods on main)
18:11
wyhaines has joined #ruby-lang
18:12
<
apeiros_ >
in that case, expected behavior is that any call on define_method_meth simply defines a new method 'meth1' on main
18:12
aetcore has joined #ruby-lang
18:12
<
apeiros_ >
and that's the case:
18:12
<
apeiros_ >
ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; p bar'
18:12
<
tocki_ >
so method definitions have lexical, rather than dynamic scoping ?
18:12
krz has joined #ruby-lang
18:13
<
apeiros_ >
yes, def's are lexically bound
18:13
<
apeiros_ >
nesting method defs will retain the lexical scope
18:13
dous has quit [Ping timeout: 256 seconds]
18:15
sandbags has quit [Remote host closed the connection]
18:15
<
tocki_ >
apeiros_, try this: ruby -e 'def foo; def bar; :x; end; end; class X; foo; public :bar; end; x = X.new; p x.bar'
18:16
wyhaines has quit [Read error: Connection reset by peer]
18:16
wyhaines has joined #ruby-lang
18:16
thinkdevcode has joined #ruby-lang
18:18
<
tocki_ >
in jruby they say its all ok.. since latest mri behaves the same
18:18
anannie has quit [Remote host closed the connection]
18:18
<
tocki_ >
how strange..
18:19
anannie has joined #ruby-lang
18:19
anannie has quit [Read error: Connection reset by peer]
18:19
anannie has joined #ruby-lang
18:22
<
tocki_ >
i'd really like to understand this one ?
18:24
krz has quit [Quit: krz]
18:25
anannie has quit [Remote host closed the connection]
18:25
<
tocki_ >
it seems that everything defined in main is part of every other object
18:29
<
tocki_ >
are there visibility restrictions for namespaces (private, public, protected)
18:29
<
apeiros_ >
why the public :bar? it works without too
18:29
<
apeiros_ >
but you should pay close attention to the output of this:
18:29
<
apeiros_ >
ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; x = X.new; p x.method(:bar)'
18:29
<
apeiros_ >
as said, the method is defined on main, not on X
18:31
cyri_ has quit [Quit: cyri_]
18:31
<
banisterfiend >
apeiros_: methods defined at top-level become private instance methods of Object, but i'm sure you knew that ;) (is that what you mean by define on main, or are you meaning singleton methods defined on main?)
18:31
<
apeiros_ >
banisterfiend: afaik it wasn't always that way
18:31
<
apeiros_ >
also it seems they're now public
18:31
<
banisterfiend >
really?
18:31
<
banisterfiend >
in ruby 2.0 ?
18:31
<
banisterfiend >
weird, let me checkx0r
18:31
<
apeiros_ >
banisterfiend: ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; x = X.new; p x.bar'
18:32
<
apeiros_ >
iirc it was originally so, that a method defined on main was only available on main, not on Object
18:32
<
apeiros_ >
i.e., you could only use it at top-level. but I might misremember.
18:32
<
apeiros_ >
it might be that I did that specifically in a place, using class <<self within main
18:32
<
tocki_ >
apeiros_, -e:1:in `<main>': private method `bar' called for #<X:0x9d7daa8> (NoMethodError)
18:33
<
tocki_ >
apeiros_, ruby 1.9.2dev (2010-07-02) [i486-linux]
18:33
<
banisterfiend >
apeiros_: oh you mean nested methods?
18:33
<
tocki_ >
that example does not work on older mri
18:33
<
apeiros_ >
seems mri is inconsistent with nested methods
18:33
<
banisterfiend >
apeiros_: cos 'bar' will be public, but foo will be private
18:33
chimkan has joined #ruby-lang
18:34
thinkdevcode has quit [Read error: No route to host]
18:34
dous has joined #ruby-lang
18:34
<
tocki_ >
why is bar public ?
18:34
dous has joined #ruby-lang
18:34
dous has quit [Changing host]
18:34
thinkdevcode has joined #ruby-lang
18:35
<
banisterfiend >
tocki_: so, when you run apeiros_'s code here: ` ruby -e 'def foo; def bar; :x; end; end; class X; foo; end; x = X.new; p x.bar'` are you saying you get that error about x.bar being private?
18:36
<
tocki_ >
yes - on older version of mri
18:36
<
banisterfiend >
interesting
18:38
<
banisterfiend >
tocki_: what patch level is your 1.9.2 ?
18:38
<
banisterfiend >
tocki_: what the heck u're running 1.9.2dev ?
18:38
<
banisterfiend >
tocki_: you seriously need to upgrade ;)
18:38
<
apeiros_ >
anyway, who uses nested methods? and who uses methods on main? both are rarely a good idea. or rather: I haven't ever seen a situation where it'd have been a good idea.
18:39
<
banisterfiend >
yeah they probably dont even have specs for them
18:39
<
banisterfiend >
so they dont care to maintain the behaviour across ruby versions
18:41
<
tocki_ >
apeiros_, you think ruby should not have nested methods & methods in main ?
18:41
<
apeiros_ >
tocki_: nested methods, yes, off with their heads
18:42
<
apeiros_ >
methods in main: usable in scripting situations
18:42
<
apeiros_ >
also no methods in main would break consistency
18:42
banisterfiend has quit [Read error: Connection reset by peer]
18:43
<
tocki_ >
its so strange to have these meths available
_everywhere_ as private
18:43
savage- has quit [Quit: savage-]
18:43
<
tocki_ >
strange solution for scoping
18:43
methods has left #ruby-lang [#ruby-lang]
18:44
<
tocki_ >
apeiros_, nested methods can be useful for redefining existing methods.. some logic could choose which execution path to take, and how to define given set of methods
18:44
<
tocki_ >
it can be useful in situations where... say.. State pattern would apply
18:45
gsav has joined #ruby-lang
18:45
tonni has quit [Remote host closed the connection]
18:45
davidbalbert is now known as davidbalber|away
18:46
tonni has joined #ruby-lang
18:46
<
tocki_ >
i'd say this is bug, rather than 'undefined behavior'
18:47
<
tocki_ >
i didn't even know ruby has 'undefined behavior' as concept.. i thought only c/c++ suffers from this
18:47
<
tocki_ >
does ruby have 'undefined behavior' ?
18:47
<
apeiros_ >
tocki_: show me an actual use case of nested methods
18:48
<
apeiros_ >
and I'll show you how you can do it with less insanity.
18:48
<
tocki_ >
and you won't have trouble showing right_way to every ruby developer that comes across nested methods ?
18:48
<
apeiros_ >
and "methods available everywhere as private is strange" - so you find puts strange?
18:49
<
apeiros_ >
or for that matter -
*all* Kernel methods
18:49
banisterfiend has joined #ruby-lang
18:49
<
tocki_ >
hmmz.. true
18:49
<
apeiros_ >
19:48 tocki_: and you won't have trouble showing right_way to every ruby developer that comes across nested methods ?
18:50
<
apeiros_ >
no idea what you're asking there
18:50
<
apeiros_ >
Errno::EDOESNTPARSE
18:50
<
banisterfiend >
tocki_: btw, it's probably better to use pry-debugger than pry_debug
18:51
<
tocki_ >
but Kernel is inherited unlike main..
18:51
<
tocki_ >
banisterfiend, probably :)
18:53
<
banisterfiend >
apeiros_: iirc ruby 2.0 had a way of getting the attached object for a singelton class, do u remember the method?
18:54
<
apeiros_ >
banisterfiend: haven't played with ruby 2 yet
18:55
<
tocki_ >
in any case, thanks for clarifying example
18:56
<
banisterfiend >
(just reading through channel logs :P)
18:56
<
tocki_ >
cool - i'll keep that it mind
18:56
<
tocki_ >
though, rspec error messages are usually very informative
18:57
<
banisterfiend >
yeah, i dont use plymouth that much, but it's pretty useful in some circumstances
18:58
<
tocki_ >
i believe it is (i usually change code to add binding.pry statements)
18:58
banisterfiend has quit [Remote host closed the connection]
18:59
Mon_Ouie has joined #ruby-lang
19:00
sush24 has quit [Quit: This computer has gone to sleep]
19:02
cyri_ has joined #ruby-lang
19:03
ryanf has joined #ruby-lang
19:04
<
tocki_ >
yes.. since methods are not closures, their nested use is limited
19:08
<
tocki_ >
how to get list of classes and modules defined within class ?
19:09
davidbalber|away is now known as davidbalbert
19:10
AlexDenisov has joined #ruby-lang
19:11
havenn has joined #ruby-lang
19:13
ryanf has quit [Quit: broken pipes |||]
19:15
banisterfiend has joined #ruby-lang
19:17
datanoise has joined #ruby-lang
19:17
erichmenge has joined #ruby-lang
19:19
zarubin has quit [Ping timeout: 252 seconds]
19:20
havenn has quit [Remote host closed the connection]
19:20
thone_ has quit [Ping timeout: 276 seconds]
19:21
thone has joined #ruby-lang
19:21
datanoise has quit [Ping timeout: 256 seconds]
19:21
<
apeiros_ >
tocki_: classes and modules aren't defined within a module, constants are. and that should lead you to the answer.
19:24
thinkdevcode has quit [Remote host closed the connection]
19:31
AlexDenisov has quit [Quit: AlexDenisov]
19:33
<
banisterfiend >
tocki_: in pry, use ls -c YourModule
19:33
chimkan has quit [Quit: chimkan]
19:34
<
banisterfiend >
tocki_: classes/modules are colored blue
19:34
yalue has joined #ruby-lang
19:37
<
tocki_ >
cool, thanks
19:38
wyhaines has quit [Remote host closed the connection]
19:41
apeiros_ has quit [Remote host closed the connection]
19:45
<
tocki_ >
hmmz.. it would be cool to be able to easily spawn some kind of pry web interface
19:45
Dreamer3 has joined #ruby-lang
19:48
<
tocki_ >
heh.. every number has object_id
19:48
<
banisterfiend >
tocki_: that exists
19:49
<
tocki_ >
but object_ids for floating point numbers seem to increase, for every number used
19:50
<
tocki_ >
its not like some hashed value of number.. every floating point number is treated like object 4 real
19:50
<
tocki_ >
banisterfiend, thanks!
19:50
<
banisterfiend >
tocki_: because floating points are objects allocated on the heap
19:50
<
banisterfiend >
fixnums are immediate values, stored in the VALUE itself
19:52
<
tocki_ >
heh, using floats must be costly
19:54
<
banisterfiend >
tocki_: yeah there's a significant performance impact using floats rather than fixnums in a tight loop, u should def. switch to fixnums if u can
19:56
cyri_ has quit [Quit: cyri_]
19:56
<
tocki_ >
i like arbitrary precision arithmetics that comes with ruby
19:56
<
tocki_ >
i certainly gives it edge over php/js
19:57
rindolf has quit [Quit: Leaving]
19:59
jamjam has joined #ruby-lang
20:05
wyhaines has joined #ruby-lang
20:09
anannie has joined #ruby-lang
20:17
cyri_ has joined #ruby-lang
20:20
rindolf has joined #ruby-lang
20:25
My_Hearing has joined #ruby-lang
20:27
KU0N has joined #ruby-lang
20:27
rindolf has quit [Quit: Leaving]
20:27
Mon_Ouie has quit [Ping timeout: 252 seconds]
20:28
yalue has quit [Quit: Leaving]
20:29
rindolf has joined #ruby-lang
20:30
<
steveklabnik >
it is pretty godo
20:31
<
rindolf >
steveklabnik: OK, let me check.
20:31
datanoise has joined #ruby-lang
20:32
<
rindolf >
steveklabnik: "a few additional concens" - s/concens/concerns/
20:33
<
rindolf >
steveklabnik: you're welcome .
20:33
cyri_ has quit [Quit: cyri_]
20:36
datanoise has quit [Ping timeout: 255 seconds]
20:39
xalei has joined #ruby-lang
20:39
<
Spaceghostc2c >
rindolf: Considering that it's written by the place you get your gems from, I'd say it has a chance of being alright.
20:41
<
rindolf >
Spaceghostc2c: thanks for the input.
20:41
<
rindolf >
steveklabnik: I read your tutorial and it is nice.
20:41
<
steveklabnik >
thanks.
20:41
<
rindolf >
steveklabnik: thanks for that - I will get going now.
20:41
<
rindolf >
I mean working on my gem.
20:42
<
steveklabnik >
:) awesome
20:43
qwerxy has quit [Quit: offski]
20:45
Axsuul has joined #ruby-lang
20:45
cyri_ has joined #ruby-lang
20:50
wyhaines has quit [Remote host closed the connection]
20:51
ruurd has joined #ruby-lang
20:53
<
wasnotrice >
steveklabnik: Do you have a minute to talk in #shoes?
20:54
<
steveklabnik >
sure
20:54
KA_ has quit [Quit: KA_]
20:55
banisterfiend has quit [Ping timeout: 256 seconds]
20:56
bfreeman has quit [Quit: bfreeman]
20:57
sn0wb1rd has quit [Quit: sn0wb1rd]
20:57
KA_ has joined #ruby-lang
20:59
My_Hearing is now known as Mon_Ouie
21:01
rindolf has quit [Read error: Connection reset by peer]
21:01
rindolf has joined #ruby-lang
21:07
qwerxy has joined #ruby-lang
21:09
solars has quit [Ping timeout: 240 seconds]
21:10
mistym has quit [Remote host closed the connection]
21:13
Aria has joined #ruby-lang
21:15
svyatov has joined #ruby-lang
21:17
workmad3 has joined #ruby-lang
21:18
rindolf has quit [Read error: Connection reset by peer]
21:19
rindolf has joined #ruby-lang
21:22
qwerxy has quit [Quit: offski]
21:25
mistym has joined #ruby-lang
21:25
mistym has quit [Changing host]
21:25
mistym has joined #ruby-lang
21:26
mistym has quit [Remote host closed the connection]
21:31
datanoise has joined #ruby-lang
21:31
fsvehla has quit [Quit: fsvehla]
21:32
roadt_ has quit [Ping timeout: 268 seconds]
21:33
ttilley has quit [Quit: ttilley]
21:34
fsvehla has joined #ruby-lang
21:35
KA_ has quit [Quit: KA_]
21:35
datanoise has quit [Ping timeout: 248 seconds]
21:38
uglybandersnatch has quit [Quit: Leaving.]
21:38
blacktulip has quit [Read error: Connection reset by peer]
21:38
Nisstyre has quit [Quit: Leaving]
21:39
tonni has quit [Read error: Connection reset by peer]
21:39
tonni has joined #ruby-lang
21:40
Nisstyre has joined #ruby-lang
21:44
swarley has joined #ruby-lang
21:46
rindolf has quit [Read error: Connection reset by peer]
21:46
rindolf has joined #ruby-lang
21:48
clementine has joined #ruby-lang
21:49
<
andrewvos >
The way avdi executes Ruby code and has the output appear after #=> is pretty cool. Anyone know how to do this in vim?
21:50
<
zzak >
andrewvos: you execute code in vim?
21:50
<
andrewvos >
zzak: Well not really. I use vimux.
21:53
clementine has quit [Remote host closed the connection]
21:53
<
andrewvos >
zzak: I use VimuxPromptCommand and I have <leader>r mapped to VimuxRunLastCommand. Works quite well.
21:53
<
andrewvos >
zzak: But the idea of executing the current code and putting the result of every line that has a #=> is pretty cool.
21:55
mistym has joined #ruby-lang
21:55
mistym has joined #ruby-lang
21:55
mistym has quit [Changing host]
21:57
<
zzak >
never heard of it, i just use vim with a screen split for irb or whatever
21:58
KA_ has joined #ruby-lang
22:00
savage- has joined #ruby-lang
22:01
bfreeman has joined #ruby-lang
22:01
justinmcp has joined #ruby-lang
22:01
rindolf has quit [Quit: Leaving]
22:01
mistym has quit [Remote host closed the connection]
22:03
nyuszika7h has quit [Remote host closed the connection]
22:05
nyuszika7h has joined #ruby-lang
22:08
senekis has joined #ruby-lang
22:08
justinra_ has quit [Remote host closed the connection]
22:09
methods has joined #ruby-lang
22:09
Kingy has joined #ruby-lang
22:09
justinram has joined #ruby-lang
22:11
apeiros_ has joined #ruby-lang
22:13
<
andrewvos >
zzak: If you use tmux give vimux a try. It doesn't sound like you need it, but once you get used to it you'll be happy.
22:13
methods has left #ruby-lang [#ruby-lang]
22:13
<
andrewvos >
zzak: Especially for running tests.
22:13
benanne has joined #ruby-lang
22:14
justinram has quit [Ping timeout: 264 seconds]
22:16
<
zzak >
andrewvos: i only do that when im doing heavy development, and ill usually have another screen window running guard
22:17
<
zzak >
ive never used tmux either, only screen
22:19
<
cinch >
what are some good ruby podcasts?
22:19
ruurd has quit [Quit: Leaving...]
22:21
KA_ has quit [Quit: KA_]
22:23
savage- has quit [Quit: savage-]
22:26
yxhuvud has quit [Ping timeout: 255 seconds]
22:28
KA_ has joined #ruby-lang
22:29
erichmenge has quit [Quit: Be back later]
22:33
<
Spaceghostc2c >
cinch: Ruby rogues.
22:38
uglybandersnatch has joined #ruby-lang
22:40
methods1 has joined #ruby-lang
22:44
svyatov has quit [Quit: svyatov]
22:44
esad has joined #ruby-lang
22:45
thinkdevcode has joined #ruby-lang
22:45
methods1 has quit [Ping timeout: 252 seconds]
22:46
esad has quit [Client Quit]
22:47
<
cinch >
Spaceghostc2c, thanks ill take a listen :>
22:47
<
andrewvos >
cinch: Are you the gem?
22:47
<
dominikh >
I hope not
22:47
<
andrewvos >
dominikh: hah
22:48
KA_ has quit [Quit: KA_]
22:48
methods has joined #ruby-lang
22:49
bfreeman has quit [Quit: bfreeman]
22:50
KA_ has joined #ruby-lang
22:52
<
dominikh >
there's a gem called cinch
22:53
thinkdevcode has quit [Remote host closed the connection]
22:55
CaptainJet has quit [Ping timeout: 245 seconds]
22:55
Assurbanipal has joined #ruby-lang
22:55
csmrfx has joined #ruby-lang
22:55
<
cinch >
a am the moster of the cinch bot
22:55
clementine has joined #ruby-lang
22:55
<
cinch >
i control all the cinch bots :>
22:55
<
apeiros_ >
puppetmaster…
22:56
methods has quit [Ping timeout: 252 seconds]
22:56
CaptainJet has joined #ruby-lang
22:56
methods has joined #ruby-lang
22:56
methods has left #ruby-lang [#ruby-lang]
22:58
KA_ has quit [Quit: KA_]
22:58
sn0wb1rd has joined #ruby-lang
22:59
bryno has quit [Quit: brb]
23:00
<
apeiros_ >
csmrfx: you're trying to run an instance method as a class method. that can't work.
23:01
<
apeiros_ >
either define them as class methods, or extend an object with the module, or include the module into a class and instanciate it…
23:01
<
apeiros_ >
*instantiate
23:01
KA_ has joined #ruby-lang
23:02
adam12 has quit [Read error: Connection reset by peer]
23:02
<
csmrfx >
I didn't realize modules have instance & class methods
23:03
<
apeiros_ >
you didn't realize that you called the method
*instance_methods* on the module?
23:04
<
csmrfx >
well, "class methods" on a module -- ??
23:05
<
csmrfx >
plus, what it returns is just an array with symbols
23:06
<
csmrfx >
I dont care.
23:06
<
csmrfx >
I just want the thing to call every method
23:07
<
apeiros_ >
it's easier to get things to work when one understands what he's doing.
23:07
<
csmrfx >
well, of course I fuddled with the pastie and managed to omit "extend Tests" line
23:07
<
apeiros_ >
and yeah, class methods is a convenience term. it's instance methods of the singleton class
23:07
<
apeiros_ >
there's no such thing as class methods.
23:07
<
apeiros_ >
and a module being an object has a singleton class
23:08
methods has joined #ruby-lang
23:09
<
csmrfx >
There's yet another paradox there:
23:09
<
csmrfx >
How can it return an array of instance_methods if there are no instance_methods
23:09
<
apeiros_ >
your premise is wrong
23:10
<
apeiros_ >
but yes,
*if* there are no instance methods, instance_methods will return an empty array.
23:10
<
apeiros_ >
how conveniently consistent.
23:11
adam12 has joined #ruby-lang
23:15
bryno has joined #ruby-lang
23:16
wyhaines has joined #ruby-lang
23:18
banisterfiend has joined #ruby-lang
23:19
methods has quit [Quit: Leaving.]
23:20
<
csmrfx >
Indeed I say
23:20
<
csmrfx >
My old chap
23:20
mhag has quit [Remote host closed the connection]
23:21
<
csmrfx >
No need for neither the module names nor the prefixes
23:22
nignaztic has joined #ruby-lang
23:23
workmad3 has quit [Ping timeout: 260 seconds]
23:24
ramonmaruko has quit [Ping timeout: 268 seconds]
23:24
Mon_Ouie has quit [Ping timeout: 248 seconds]
23:24
ramonmaruko has joined #ruby-lang
23:25
Averna has joined #ruby-lang
23:25
nazty has quit [Ping timeout: 268 seconds]
23:26
pj has joined #ruby-lang
23:26
pj has quit [Client Quit]
23:26
<
apeiros_ >
I think you're reinventing the wheel and not really making it better while doing so…
23:26
<
csmrfx >
Which wheel is that?
23:27
<
apeiros_ >
the thing you asked - automatically running tests
23:27
<
csmrfx >
ok, well, thats done, aka calling all methods on a module
23:27
<
csmrfx >
I find it may be too late for regrets now! 8)
23:28
Assurbanipal has quit [Quit: Konversation terminated!]
23:29
<
csmrfx >
Hm, is it a bad practice if I move code from inside a modules method onto the module?
23:30
<
csmrfx >
(iow, remove run_tests -method, move code in Tests module)
23:30
bfreeman has joined #ruby-lang
23:31
benanne has quit [Quit: kbai]
23:32
datanoise has joined #ruby-lang
23:35
jamjam has quit [Ping timeout: 252 seconds]
23:35
<
csmrfx >
swarley: well so as to simplify that Tests module by removing run_tests and just having it run all its methods
23:36
<
swarley >
why not just make run_tests private and then run all public methods
23:37
datanoise has quit [Ping timeout: 276 seconds]
23:37
* csmrfx
goes to see what methods modules have
23:37
<
swarley >
Module#public_methods
23:38
clementine has quit [Remote host closed the connection]
23:40
<
swarley >
sorry, i mean Module#public_instance_methods
23:40
Assurbanipal has joined #ruby-lang
23:43
<
csmrfx >
swarley: A: because then the module that is being tested with Tests -module cannot run the tests.
23:45
<
swarley >
the best thing you could do is probably use a DSL. But if you're using unit test style cases, that wont work
23:45
<
csmrfx >
pure ruby land
23:46
<
swarley >
you can do internal DSL
23:46
<
csmrfx >
ape-like creatures that only know ruby need to be able to write these tests (including me)
23:46
<
csmrfx >
s/know ruby/know some ruby/
23:47
<
csmrfx >
no need for dsl
23:48
<
csmrfx >
just a simple test module, with simple methods that test other methods work, and test module runs all
23:54
<
csmrfx >
(except, that is not the correct pastie)
23:54
wyhaines has quit [Read error: Connection reset by peer]
23:56
uglybandersnatch has quit [Quit: Leaving.]
23:57
mistym has joined #ruby-lang
23:57
mistym has quit [Changing host]
23:57
mistym has joined #ruby-lang
23:59
KA_ has quit [Quit: KA_]