Module: Auxilium::SignumResponder
- Included in:
- Responder
- Defined in:
- lib/auxilium/responders/signum_responder.rb
Class Attribute Summary collapse
-
.helper ⇒ Object
Returns the value of attribute helper.
-
.namespace_lookup ⇒ Object
Returns the value of attribute namespace_lookup.
-
.signum_keys ⇒ Object
Returns the value of attribute signum_keys.
Instance Method Summary collapse
Class Attribute Details
.helper ⇒ Object
Returns the value of attribute helper.
8 9 10 |
# File 'lib/auxilium/responders/signum_responder.rb', line 8 def helper @helper end |
.namespace_lookup ⇒ Object
Returns the value of attribute namespace_lookup.
8 9 10 |
# File 'lib/auxilium/responders/signum_responder.rb', line 8 def namespace_lookup @namespace_lookup end |
.signum_keys ⇒ Object
Returns the value of attribute signum_keys.
8 9 10 |
# File 'lib/auxilium/responders/signum_responder.rb', line 8 def signum_keys @signum_keys end |
Instance Method Details
#initialize(controller, resources, options = {}) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/auxilium/responders/signum_responder.rb', line 18 def initialize(controller, resources, = {}) super @signum = .delete(:signum) @success = .delete(:success) @error = .delete(:error) end |
#to_html ⇒ Object
25 26 27 28 |
# File 'lib/auxilium/responders/signum_responder.rb', line 25 def to_html send_signum! if send_signum? super end |
#to_js ⇒ Object
30 31 32 33 |
# File 'lib/auxilium/responders/signum_responder.rb', line 30 def to_js send_signum! if send_signum? defined?(super) ? super : to_format end |