Class: RGhost::Grid::DynamicCallback
- Defined in:
- lib/rghost/grid/dynamic_callback.rb
Overview
Dynamic Callbacks
Constant Summary collapse
- ACCEPT =
[:before_row, :after_row, :even_row, :odd_row, :before_column, :after_column, :even_column, :odd_column]
Instance Attribute Summary
Attributes inherited from Callback
Instance Method Summary collapse
-
#initialize(name, options = {}, &block) ⇒ DynamicCallback
constructor
A new instance of DynamicCallback.
Methods inherited from Callback
Methods included from RubyToPs
#array_to_stack, #hash_to_array, #pack_string, #ps_escape, #string_eval, #to_array, #to_bool, #to_string, #to_string_array
Methods inherited from PsObject
#<<, #call, #graphic_scope, #ps, #raw, #set, #to_s
Constructor Details
#initialize(name, options = {}, &block) ⇒ DynamicCallback
Returns a new instance of DynamicCallback.
7 8 9 10 |
# File 'lib/rghost/grid/dynamic_callback.rb', line 7 def initialize(name,={},&block) raise NameError.new("#{name} no accept in #{self.class}") unless ACCEPT.include? name super(name,,&block) end |