Class: SamFront::Front

Inherits:
Object
  • Object
show all
Defined in:
lib/jenga/front.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Front

Returns a new instance of Front.



7
8
9
10
11
12
13
14
15
16
# File 'lib/jenga/front.rb', line 7

def initialize env
  hash = [
    { class: 'SamFront::ComponentOne', config: {} },
    { class: 'SamFront::ComponentTwo', config: {} },
    { class: 'SamFront::ComponentThree', config: {} }
  ]
  b = SamFront::Boostraper.new(hash)
  entry_point = b.get_first
  entry_point.run_task 1
end