inspect

inspect()
Instance Public methods

Returns a string that represents the StringScanner object, showing:

  • the current position

  • the size of the string

  • the characters surrounding the scan pointer

    s = ::new(âFri Dec 12 1975 14:39â) s.inspect # -> '#<StringScanner 0/21 @ âFri Dâ¦â>' s.scan_until /12/ # -> âFri Dec 12â s.inspect # -> '#<StringScanner 10/21 ââ¦ec 12â @ â 1975â¦â>'

doc_ruby_on_rails
2015-05-16 02:43:35
Comments
Leave a Comment

Please login to continue.