Class: Vernacular::AST::Modifier::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



17
18
19
# File 'lib/vernacular/ast/modifier.rb', line 17

def code
  @code
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



17
18
19
# File 'lib/vernacular/ast/modifier.rb', line 17

def pattern
  @pattern
end

#symbolObject

Returns the value of attribute symbol

Returns:

  • (Object)

    the current value of symbol



17
18
19
# File 'lib/vernacular/ast/modifier.rb', line 17

def symbol
  @symbol
end

Instance Method Details

#componentsObject



19
20
21
# File 'lib/vernacular/ast/modifier.rb', line 19

def components
  [symbol, pattern, code]
end