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
68 69 70 |
# File 'lib/hocon/impl/tokens.rb', line 68 def ==(other) super(other) && other.line_number == line_number end |
#can_equal(other) ⇒ Object
64 65 66 |
# File 'lib/hocon/impl/tokens.rb', line 64 def can_equal(other) o.is_a?(Line) end |
#hash ⇒ Object
72 73 74 |
# File 'lib/hocon/impl/tokens.rb', line 72 def hash 41 * (41 + super) + line_number end |
#token_text ⇒ Object
76 77 78 |
# File 'lib/hocon/impl/tokens.rb', line 76 def token_text "\n" end |