Module: Arelastic::Arities::Polyadic

Included in:
Nodes::Node
Defined in:
lib/arelastic/arities/polyadic.rb

Defined Under Namespace

Modules: Methods

Instance Method Summary collapse

Instance Method Details

#polyadic(operator) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/arelastic/arities/polyadic.rb', line 4

def polyadic(operator)
  @operator = operator
  include Methods

  singleton_class.class_eval do
    attr_reader :operator
  end

  attr_reader :children
end