Class: Bade::AST::MixinCommonNode

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

Instance Attribute Summary collapse

Attributes inherited from Node

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

Instance Method Summary collapse

Methods inherited from Node

#initialize, #inspect, #to_s

Constructor Details

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

Instance Attribute Details

#nameString

Returns:



8
9
10
# File 'lib/bade/ast/node/mixin_node.rb', line 8

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object

Parameters:



18
19
20
# File 'lib/bade/ast/node/mixin_node.rb', line 18

def ==(other)
  super && name == other.name
end

#paramsArray<Node>

Returns:



12
13
14
# File 'lib/bade/ast/node/mixin_node.rb', line 12

def params
  children.select { |n| allowed_parameter_types.include?(n.type) }
end