Class: RGhost::Grid::StaticCallback

Inherits:
Function show all
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

#name

Instance Method Summary collapse

Methods inherited from Function

#ps, #use_template

Methods inherited from PsObject

#<<, #call, #graphic_scope, #ps, #raw, #set, #to_s

Constructor Details

#initialize(name, &block) ⇒ StaticCallback

Returns a new instance of StaticCallback.

Raises:

  • (NameError)


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