Class: RGhost::Grid::StaticCallback
- Defined in:
- lib/rghost/grid/static_callback.rb
Constant Summary collapse
- ACCEPT =
[:before_table_create, :after_table_create]
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ StaticCallback
constructor
A new instance of StaticCallback.
Methods inherited from Function
Methods inherited from PsObject
#<<, #call, #graphic_scope, #ps, #raw, #set, #to_s
Constructor Details
#initialize(name, &block) ⇒ StaticCallback
Returns a new instance of StaticCallback.
7 8 9 10 |
# File 'lib/rghost/grid/static_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 |