D
Dan Debertin
meinrad.recheis said:ruby/lib/ruby/1.8/yaml.rb:28: warning: string =~ string will be
obsolete; use explicit regexp
why??
without =~ matching strings will not be so much fun again .
This is the case that's becoming obselete:
irb(main):001:0> "foo" =~ "foo"
(irb):1: warning: string =~ string will be obsolete; use explicit regexp
This should still work:
irb(main):002:0> "foo" =~ /bar/
=> nil # No warning.
Dan