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



9
10
11
# File 'lib/vernacular/ast/modifier.rb', line 9

def block
  @block
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



9
10
11
# File 'lib/vernacular/ast/modifier.rb', line 9

def method
  @method
end

Instance Method Details

#componentsObject



11
12
13
# File 'lib/vernacular/ast/modifier.rb', line 11

def components
  [method, block.source_location]
end