Class: Stasis::Instead

Inherits:
Plugin
  • Object
show all
Defined in:
lib/stasis/plugins/instead.rb

Instance Method Summary collapse

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