Class: Hocon::Impl::Tokens::Line
Instance Method Summary collapse
- #==(other) ⇒ Object
- #can_equal(other) ⇒ Object
- #hash ⇒ Object
-
#initialize(origin) ⇒ Line
constructor
A new instance of Line.
- #token_text ⇒ Object
Constructor Details
Instance Method Details
#==(other) ⇒ Object
67 68 69 |
# File 'lib/hocon/impl/tokens.rb', line 67 def ==(other) super(other) && other.line_number == line_number end |
#can_equal(other) ⇒ Object
63 64 65 |
# File 'lib/hocon/impl/tokens.rb', line 63 def can_equal(other) o.is_a?(Line) end |
#hash ⇒ Object
71 72 73 |
# File 'lib/hocon/impl/tokens.rb', line 71 def hash 41 * (41 + super) + line_number end |
#token_text ⇒ Object
75 76 77 |
# File 'lib/hocon/impl/tokens.rb', line 75 def token_text "\n" end |