Activity Graph

Page 1 of 1


[12:47:01] makara: has joined #ruby
[14:09:41] makara: Ping timeout: 268 seconds


[07:32:28] makara: has joined #ruby
[07:34:12] makara: Beginner Q: i have a method: def index_for ( words, word )
[07:34:44] makara: I invoke it with: index_for ( %w{ Mary had a little lamb }, "little" )
[07:35:00] makara: and get the error: SyntaxError: unexpected ')', expecting end-of-input
[07:39:33] makara: tbuehlmann: no difference
[07:40:18] makara: index_for (["Mary", "had", "a", "little", "lamb"], "little")
[07:41:01] makara: tbuehlmann: ok gotcha
[13:52:02] makara: Quit: WeeChat 1.9.1


[05:41:07] makara: has joined #ruby
[06:51:38] makara: Quit: Leaving


[08:28:54] makara: has joined #ruby
[08:29:54] makara: how can I overload +- operator? I can do + and - separately.
[08:33:26] makara: @baweaver, I think I understand now. +- is not an operator, so I can't overload it. I was wanting to create a new operator, but i don't see how the Ruby parser would understand how to tokenize it in the first place
[08:35:13] makara: @baweaver, its ok, I'm just learning Ruby
[09:08:54] makara: Ping timeout: 246 seconds