Class: Planout::OpSimple

Inherits:
Operator show all
Defined in:
lib/planout/op_simple.rb

Direct Known Subclasses

OpRandom

Instance Attribute Summary

Attributes inherited from Operator

#args

Instance Method Summary collapse

Methods inherited from Operator

#initialize

Constructor Details

This class inherits a constructor from Planout::Operator

Instance Method Details

#execute(mapper) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/planout/op_simple.rb', line 5

def execute(mapper)
  @mapper = mapper
  @parameters = {}

  @args.each do |key, value|
    @parameters[key] = mapper.evaluate(value)
  end

  simple_execute
end

#simple_executeObject



16
17
18
# File 'lib/planout/op_simple.rb', line 16

def simple_execute
  -1
end