Class: Fierce::StageManager
- Inherits:
-
Object
- Object
- Fierce::StageManager
- Defined in:
- lib/fierce/stage_manager.rb
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template) ⇒ StageManager
constructor
A new instance of StageManager.
- #stage ⇒ Object
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
#template ⇒ Object (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
#stage ⇒ Object
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 |