Class: Vernacular::ASTModifier::ParserExtension

Inherits:
Struct
  • Object
show all
Defined in:
lib/vernacular/ast_modifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



14
15
16
# File 'lib/vernacular/ast_modifier.rb', line 14

def code
  @code
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



14
15
16
# File 'lib/vernacular/ast_modifier.rb', line 14

def pattern
  @pattern
end

#symbolObject

Returns the value of attribute symbol

Returns:

  • (Object)

    the current value of symbol



14
15
16
# File 'lib/vernacular/ast_modifier.rb', line 14

def symbol
  @symbol
end

Instance Method Details

#componentsObject



16
17
18
# File 'lib/vernacular/ast_modifier.rb', line 16

def components
  [symbol, pattern, code]
end