Class: Deas::RespondWithProxy
- Inherits:
-
HandlerProxy
- Object
- HandlerProxy
- Deas::RespondWithProxy
- Defined in:
- lib/deas/respond_with_proxy.rb
Instance Attribute Summary collapse
-
#handler_class ⇒ Object
readonly
Returns the value of attribute handler_class.
-
#handler_class_name ⇒ Object
readonly
Returns the value of attribute handler_class_name.
Instance Method Summary collapse
-
#initialize(halt_args) ⇒ RespondWithProxy
constructor
A new instance of RespondWithProxy.
- #validate! ⇒ Object
Methods inherited from HandlerProxy
Constructor Details
#initialize(halt_args) ⇒ RespondWithProxy
Returns a new instance of RespondWithProxy.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/deas/respond_with_proxy.rb', line 11 def initialize(halt_args) @handler_class = Class.new do include Deas::ViewHandler def self.halt_args; @halt_args; end def self.halt_args=(value) @halt_args = value end def self.name; 'Deas::RespondWithHandler'; end attr_reader :halt_args def init! @halt_args = self.class.halt_args end def run! halt *self.halt_args end end @handler_class.halt_args = halt_args @handler_class_name = @handler_class.name end |
Instance Attribute Details
#handler_class ⇒ Object (readonly)
Returns the value of attribute handler_class.
9 10 11 |
# File 'lib/deas/respond_with_proxy.rb', line 9 def handler_class @handler_class end |
#handler_class_name ⇒ Object (readonly)
Returns the value of attribute handler_class_name.
9 10 11 |
# File 'lib/deas/respond_with_proxy.rb', line 9 def handler_class_name @handler_class_name end |
Instance Method Details
#validate! ⇒ Object
38 |
# File 'lib/deas/respond_with_proxy.rb', line 38 def validate!; end |