Class: RGhost::Grid::DynamicCallback

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

#except, #name, #only

Instance Method Summary collapse

Methods inherited from Callback

#ps

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.

Raises:

  • (NameError)


7
8
9
10
# File 'lib/rghost/grid/dynamic_callback.rb', line 7

def initialize(name,options={},&block)
  raise NameError.new("#{name} no accept in #{self.class}") unless ACCEPT.include? name
  super(name,options,&block)
end