class Parser::Token
Attributes
lineno[RW]
type[RW]
value[RW]
Public Class Methods
new(type, value, lineno)
click to toggle source
# File lib/amy/parser/tokens.rb, line 13 def initialize(type, value, lineno) @type = type @value = value @lineno = lineno end
Public Instance Methods
is_a?(type)
click to toggle source
# File lib/amy/parser/tokens.rb, line 34 def is_a?(type) @type == type end
is_c?()
click to toggle source
# File lib/amy/parser/tokens.rb, line 22 def is_c? Tokens::COMMENT == @type or Tokens::COMMENT_TAG == @type end
is_ct?()
click to toggle source
# File lib/amy/parser/tokens.rb, line 19 def is_ct? Tokens::COMMENT_TAG == @type end
is_p?()
click to toggle source
# File lib/amy/parser/tokens.rb, line 26 def is_p? Tokens::PROPERTY == @type end
is_s?()
click to toggle source
# File lib/amy/parser/tokens.rb, line 30 def is_s? Tokens::STRING == @type end