class Hocon::Impl::Tokens::Line

Public Class Methods

new(origin) click to toggle source
Calls superclass method
# File lib/hocon/impl/tokens.rb, line 60
def initialize(origin)
  super(TokenType::NEWLINE, origin)
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/hocon/impl/tokens.rb, line 68
def ==(other)
  super(other) && other.line_number == line_number
end
can_equal(other) click to toggle source
# File lib/hocon/impl/tokens.rb, line 64
def can_equal(other)
  o.is_a?(Line)
end
hash() click to toggle source
Calls superclass method
# File lib/hocon/impl/tokens.rb, line 72
def hash
  41 * (41 + super) + line_number
end
token_text() click to toggle source
# File lib/hocon/impl/tokens.rb, line 76
def token_text
  "\n"
end