Class: Fierce::StageManager

Inherits:
Object
  • Object
show all
Defined in:
lib/fierce/stage_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template) ⇒ StageManager

Returns a new instance of StageManager.



5
6
7
# File 'lib/fierce/stage_manager.rb', line 5

def initialize(template)
  @template = template
end

Instance Attribute Details

#templateObject (readonly)

Returns the value of attribute template.



3
4
5
# File 'lib/fierce/stage_manager.rb', line 3

def template
  @template
end

Instance Method Details

#stageObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/fierce/stage_manager.rb', line 12

def stage
  <<-RUBY
    content = #{source.inspect}
    path = #{virtual_path.inspect}

    Fierce::MasterOfCeremonies.new(
      content, path, local_assigns, controller, self
    ).render
  RUBY
end