Class: Bade::AST::MixinCallNode

Inherits:
MixinCommonNode show all
Defined in:
lib/bade/ast/node/mixin_node.rb

Instance Attribute Summary

Attributes inherited from MixinCommonNode

#name

Attributes inherited from Node

#children, #filename, #lineno, #parent, #type

Instance Method Summary collapse

Methods inherited from MixinCommonNode

#==, #params

Methods inherited from Node

#==, #initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from Bade::AST::Node

Instance Method Details

#allowed_parameter_typesObject



36
37
38
# File 'lib/bade/ast/node/mixin_node.rb', line 36

def allowed_parameter_types
  %i[mixin_param mixin_key_param]
end

#blocksObject



40
41
42
# File 'lib/bade/ast/node/mixin_node.rb', line 40

def blocks
  children.select { |a| a.type == :mixin_block }
end