Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ruby_parser_extras.rb,
lib/ruby_parser_extras.rb
Instance Attribute Summary collapse
-
#lineno ⇒ Object
This is a hack used by the lexer to sneak in line numbers at the identifier level.
Instance Method Summary collapse
Instance Attribute Details
#lineno ⇒ Object
This is a hack used by the lexer to sneak in line numbers at the identifier level. This should be MUCH smaller than making process_token return [value, lineno] and modifying EVERYTHING that reduces tIDENTIFIER.
1416 1417 1418 |
# File 'lib/ruby_parser_extras.rb', line 1416 def lineno @lineno end |
Instance Method Details
#grep(re) ⇒ Object
1403 1404 1405 |
# File 'lib/ruby_parser_extras.rb', line 1403 def grep re lines.grep re end |