Class: WFlow::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/w_flow/node.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/w_flow/node.rb', line 6

def options
  @options
end

.tasksObject (readonly)

Returns the value of attribute tasks.



6
7
8
# File 'lib/w_flow/node.rb', line 6

def tasks
  @tasks
end

Class Method Details

.build(tasks, options) ⇒ Object



8
9
10
11
12
13
# File 'lib/w_flow/node.rb', line 8

def build(tasks, options)
  Class.new(self) do |klass|
    @tasks   = tasks
    @options = options
  end
end