Class: Vernacular::ASTModifier::BuilderExtension

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



6
7
8
# File 'lib/vernacular/ast_modifier.rb', line 6

def block
  @block
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



6
7
8
# File 'lib/vernacular/ast_modifier.rb', line 6

def method
  @method
end

Instance Method Details

#componentsObject



8
9
10
# File 'lib/vernacular/ast_modifier.rb', line 8

def components
  [method, block.source_location]
end