T
Tom Reilly
Regexp error?
Page 538 Programming Ruby
m = /(.)(.)(\d+)(\d)/.select("TXH1138: The Movie")
p m.to_a
rb_tmp.rb:1: private method `select' called for /(.)(.)(\d+)(\d)/:Regexp
(NoMethodError)
Why should there be a NoMethodError for select?
Thanks
Tom Reilly
Page 538 Programming Ruby
m = /(.)(.)(\d+)(\d)/.select("TXH1138: The Movie")
p m.to_a
rb_tmp.rb:1: private method `select' called for /(.)(.)(\d+)(\d)/:Regexp
(NoMethodError)
Exit code: 1
Why should there be a NoMethodError for select?
Thanks
Tom Reilly