Class: Opine::Native::Table

Inherits:
Table show all
Defined in:
lib/opine/widgets/table_osx.rb

Defined Under Namespace

Classes: OSXTable

Instance Attribute Summary

Attributes inherited from Table

#columns, #native, #parent, #resources

Instance Method Summary collapse

Methods inherited from Table

#on_select_row

Constructor Details

#initialize(window, resources, options, &block) ⇒ Table

Returns a new instance of Table.



69
70
71
72
73
74
75
# File 'lib/opine/widgets/table_osx.rb', line 69

def initialize window,resources,options,&block
  @parent = parent
  @resources = resources
  @resources = @resources.to_s.singularize.classify.constantize.all if @resources.is_a?(Symbol)
  @native = OSXTable.new(window,@resources,options,&block)
  instance_eval(&block) if block
end