Class: Stasis::Instead
Instance Method Summary collapse
-
#initialize(stasis) ⇒ Instead
constructor
A new instance of Instead.
-
#instead(string) ⇒ Object
This method is bound to all actions.
Methods inherited from Plugin
#_match_key?, _priority, #_within?, inherited, plugins, priority
Constructor Details
#initialize(stasis) ⇒ Instead
Returns a new instance of Instead.
6 7 8 |
# File 'lib/stasis/plugins/instead.rb', line 6 def initialize(stasis) @stasis = stasis end |
Instance Method Details
#instead(string) ⇒ Object
This method is bound to all actions.
11 12 13 |
# File 'lib/stasis/plugins/instead.rb', line 11 def instead(string) @stasis.action._render = string end |