class Deas::RespondWithProxy
Attributes
handler_class[R]
handler_class_name[R]
Public Class Methods
halt_args()
click to toggle source
# File lib/deas/respond_with_proxy.rb, line 15 def self.halt_args; @halt_args; end
halt_args=(value)
click to toggle source
# File lib/deas/respond_with_proxy.rb, line 16 def self.halt_args=(value) @halt_args = value end
name()
click to toggle source
# File lib/deas/respond_with_proxy.rb, line 20 def self.name; 'Deas::RespondWithHandler'; end
new(halt_args)
click to toggle source
# 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
Public Instance Methods
init!()
click to toggle source
# File lib/deas/respond_with_proxy.rb, line 24 def init! @halt_args = self.class.halt_args end
run!()
click to toggle source
# File lib/deas/respond_with_proxy.rb, line 28 def run! halt *self.halt_args end
validate!()
click to toggle source
# File lib/deas/respond_with_proxy.rb, line 38 def validate!; end