Class: Ripper::Lexer::Elem
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/ripper/lib/ripper/lexer.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
- #[](index)
- #inspect (also: #to_s)
- #pretty_print(q)
- #to_a
-
#to_s
Alias for #inspect.
Constructor Details
.new(pos, event, tok, state, message = nil) ⇒ Elem
Instance Attribute Details
#event (rw)
[ GitHub ]#message (rw)
[ GitHub ]#pos (rw)
[ GitHub ]#state (rw)
[ GitHub ]#tok (rw)
[ GitHub ]Instance Method Details
#[](index)
[ GitHub ]#inspect Also known as: #to_s
[ GitHub ]#pretty_print(q)
[ GitHub ]#to_a
[ GitHub ]# File 'ext/ripper/lib/ripper/lexer.rb', line 138
def to_a if @message [@pos, @event, @tok, @state, @message] else [@pos, @event, @tok, @state] end end
#to_s
Alias for #inspect.
# File 'ext/ripper/lib/ripper/lexer.rb', line 119
alias to_s inspect