2014-07-17 22:52
closer changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
00:01
hsbt is now known as hsbt_away
00:01
hsbt_away is now known as hsbt
00:23
hsbt is now known as hsbt_away
00:38
hsbt_away is now known as hsbt
00:49
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:52
charliesome has joined #ruby-core
01:02
nokada has quit [Remote host closed the connection]
01:09
nokada has joined #ruby-core
01:32
Aethenelle has joined #ruby-core
01:35
tarui has joined #ruby-core
01:35
nokada has quit [Remote host closed the connection]
01:57
enebo has quit [Quit: enebo]
02:12
nokada has joined #ruby-core
02:28
Aethenelle has quit [Quit: Aethenelle]
03:09
nokada has quit [Remote host closed the connection]
03:22
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:23
nokada has joined #ruby-core
03:32
hsbt is now known as hsbt_away
03:32
hsbt_away is now known as hsbt
03:36
nokada has quit [Remote host closed the connection]
03:42
nokada has joined #ruby-core
03:48
hsbt is now known as hsbt_away
03:52
nokada has quit [Remote host closed the connection]
03:53
heroux has quit [Ping timeout: 268 seconds]
03:54
charliesome has joined #ruby-core
04:30
hsbt_away is now known as hsbt
04:34
nokada has joined #ruby-core
05:04
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:07
charliesome has joined #ruby-core
05:25
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:27
charliesome has joined #ruby-core
05:58
rafaelfranca has quit [Read error: Connection reset by peer]
05:58
rafaelfr_ has joined #ruby-core
06:29
heroux has joined #ruby-core
07:37
hsbt is now known as hsbt_away
07:59
nokada has quit [Remote host closed the connection]
08:10
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
08:17
madgen has joined #ruby-core
08:49
madgen has quit [Ping timeout: 268 seconds]
09:01
madgen has joined #ruby-core
09:06
hsbt_away is now known as hsbt
09:33
heroux has quit [Ping timeout: 248 seconds]
10:36
erdic has quit [Ping timeout: 268 seconds]
10:38
erdic has joined #ruby-core
10:57
madgen has quit [Ping timeout: 260 seconds]
11:01
madgen has joined #ruby-core
11:36
swistak35 has quit [Ping timeout: 264 seconds]
11:37
unreal has quit [Ping timeout: 264 seconds]
11:37
quadz has quit [Ping timeout: 264 seconds]
11:38
unreal has joined #ruby-core
11:42
madgen has quit [Ping timeout: 244 seconds]
11:44
swistak35 has joined #ruby-core
11:50
quadz has joined #ruby-core
12:08
<
zzak >
[Arne, irc.freenode.net] how do i call a class that does certain things on a string
12:08
<
zzak >
[Arne, irc.freenode.net] like replacing placeholders
12:08
<
zzak >
[Arne, irc.freenode.net] stupid question and kinda offtopic :D but i don't knooow
12:12
<
zzak >
[Arne, irc.freenode.net] bit too general, do't u think :(?
12:12
<
zzak >
[Arne, irc.freenode.net] what does it sequence? :o
12:12
<
zzak >
[Arne, irc.freenode.net] eh eh
12:12
enebo has joined #ruby-core
12:12
<
zzak >
[apeiros, irc.freenode.net] CertainThingsOnStringDoer
12:13
<
zzak >
[apeiros, irc.freenode.net] but I'd probably indeed call it something like MyProject::StringUtils
12:13
<
zzak >
[Arne, irc.freenode.net] right now it's MyProject::Template::Handler
12:14
<
zzak >
[Arne, irc.freenode.net] but handler is like helper or util, bit general
12:14
<
zzak >
[Arne, irc.freenode.net] i like that one
12:14
enebo has quit [Client Quit]
12:20
nokada has joined #ruby-core
12:22
nagachika has joined #ruby-core
12:26
<
zzak >
[Daniel, irc.freenode.net] it feels like I'm not being very effcient with the to_s and to_i transformations
12:31
<
zzak >
[PapierKorb, irc.freenode.net] mrgrieves: What is that code supposed to do?
12:32
<
zzak >
[Daniel, irc.freenode.net] Papierkorb: recursive sum of all the digits in a number all the way until you end up with 1 digit
12:33
<
zzak >
[Daniel, irc.freenode.net] i.e. 123 -> 6 , 4444 -> 16 -> 7
12:33
<
zzak >
[apeiros, irc.freenode.net] mrgrieves: in newer rubies, I'd expect a.map(&:to_i).inject(:+) to be faster
12:34
<
zzak >
[Arne, irc.freenode.net] whats the poinf of such a function
12:34
<
zzak >
[Arne, irc.freenode.net] :o
12:34
<
zzak >
[Daniel, irc.freenode.net] apeiros: I think we have discuss the & character in the past, could you refresh my mind re what it does?
12:35
<
zzak >
[apeiros, irc.freenode.net] it tells ruby to treat the passed object as a block
12:35
<
zzak >
[apeiros, irc.freenode.net] and if the object isn't a proc, it'll call to_proc on it
12:35
<
zzak >
[apeiros, irc.freenode.net] (since only procs can be converted to blocks)
12:35
<
zzak >
[Arne, irc.freenode.net] mrgrieves: and symbols to_proc does create a proc, that calls the method symbolized by it
12:35
<
zzak >
[apeiros, irc.freenode.net] and in effect, it means that `ary.map(&:to_i)` performs the same as `ary.map { |x| x.to_i }`
12:36
<
zzak >
[Arne, irc.freenode.net] &:foo => { |x| x.foo }
12:50
madgen has joined #ruby-core
12:54
Aethenelle has joined #ruby-core
13:08
nokada has quit [Remote host closed the connection]
13:36
hsbt_ has joined #ruby-core
13:41
_ko10 has joined #ruby-core
13:43
_ko1 has quit [*.net *.split]
13:43
hsbt has quit [*.net *.split]
13:44
charliesome has joined #ruby-core
13:56
nokada has joined #ruby-core
14:02
knu has quit [Ping timeout: 260 seconds]
14:06
knu has joined #ruby-core
14:10
nagachika has quit [Remote host closed the connection]
14:13
nagachika has joined #ruby-core
14:31
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:33
charliesome has joined #ruby-core
14:37
charliesome has quit [Client Quit]
14:52
enebo has joined #ruby-core
15:21
nagachika has quit [Remote host closed the connection]
15:34
madgen_ has joined #ruby-core
15:35
LongyanG has joined #ruby-core
15:39
wycats_ has joined #ruby-core
15:40
unreal_ has joined #ruby-core
15:43
znz_jp0 has joined #ruby-core
15:44
madgen has quit [*.net *.split]
15:44
unreal has quit [*.net *.split]
15:44
Long_yanG has quit [*.net *.split]
15:44
wycats has quit [*.net *.split]
15:44
znz_jp has quit [*.net *.split]
15:47
wycats_ is now known as wycats
15:58
rafaelfr_ has quit [Remote host closed the connection]
16:00
rafaelfranca has joined #ruby-core
16:01
shinnya has joined #ruby-core
16:02
Aethenelle has quit [Ping timeout: 250 seconds]
16:03
Aethenelle has joined #ruby-core
16:05
rafaelfranca has quit [Ping timeout: 240 seconds]
16:50
shinnya has quit [Ping timeout: 244 seconds]
16:52
rafaelfranca has joined #ruby-core
16:52
rafaelfranca has joined #ruby-core
16:53
rafaelfr_ has joined #ruby-core
16:57
rafaelfranca has quit [Ping timeout: 276 seconds]
17:50
heroux has joined #ruby-core
18:12
unreal_ is now known as unreal
18:21
heroux has quit [Ping timeout: 248 seconds]
18:24
madgen_ has quit [Ping timeout: 240 seconds]
18:28
heroux has joined #ruby-core
18:37
nokada_ has joined #ruby-core
18:39
knu has quit [Ping timeout: 252 seconds]
18:39
mpapis has quit [Ping timeout: 252 seconds]
18:39
nokada has quit [Ping timeout: 252 seconds]
18:39
tarui has quit [Ping timeout: 252 seconds]
18:41
ggherdov has quit [Remote host closed the connection]
18:42
tarui has joined #ruby-core
18:43
knu has joined #ruby-core
18:47
mpapis has joined #ruby-core
18:53
ggherdov has joined #ruby-core
18:58
n0kada has quit [Ping timeout: 244 seconds]
19:48
hsbt_ has quit [*.net *.split]
19:48
drbrain has quit [*.net *.split]
19:53
Aethenelle has quit [Quit: Aethenelle]
19:54
Aethenelle has joined #ruby-core
19:57
hsbt_ has joined #ruby-core
19:57
drbrain has joined #ruby-core
20:04
hsbt_ has quit [*.net *.split]
20:04
drbrain has quit [*.net *.split]
20:08
hsbt_ has joined #ruby-core
20:09
drbrain has joined #ruby-core
20:14
drbrain_ has joined #ruby-core
20:16
drbrain has quit [Ping timeout: 240 seconds]
20:16
drbrain_ is now known as drbrain
20:20
madgen has joined #ruby-core
20:44
harrow` has joined #ruby-core
20:47
harrow has quit [*.net *.split]
21:03
Aethenelle has quit [Quit: Aethenelle]
21:05
Aethenelle has joined #ruby-core
21:18
ItSANgo_ has quit [Quit: Leaving...]
21:32
Aethenelle has quit [Quit: Aethenelle]
21:33
ItSANgo has joined #ruby-core
21:41
drbrain has quit [Ping timeout: 264 seconds]
21:41
heroux has quit [Ping timeout: 264 seconds]
21:43
drbrain has joined #ruby-core
21:43
heroux has joined #ruby-core
22:23
enebo has quit [Quit: enebo]
22:35
shinnya has joined #ruby-core
22:53
rafaelfr_ has quit [Remote host closed the connection]
22:54
rafaelfranca has joined #ruby-core
22:54
rafaelfranca has joined #ruby-core
22:55
charliesome has joined #ruby-core
22:58
rafaelfranca has quit [Ping timeout: 248 seconds]
23:04
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:25
charliesome has joined #ruby-core
23:30
shinnya has quit [Ping timeout: 252 seconds]