Class: Clef::Parser::LilypondLexer::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/clef/parser/lilypond_lexer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



6
7
8
# File 'lib/clef/parser/lilypond_lexer.rb', line 6

def column
  @column
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



6
7
8
# File 'lib/clef/parser/lilypond_lexer.rb', line 6

def line
  @line
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



6
7
8
# File 'lib/clef/parser/lilypond_lexer.rb', line 6

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



15
16
17
# File 'lib/clef/parser/lilypond_lexer.rb', line 15

def ==(other)
  value == other || super
end

#match?(*args) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/clef/parser/lilypond_lexer.rb', line 11

def match?(*args)
  value.match?(*args)
end

#to_sObject



7
8
9
# File 'lib/clef/parser/lilypond_lexer.rb', line 7

def to_s
  value
end