Class: Opine::Native::Table
- 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
-
#initialize(window, resources, options, &block) ⇒ Table
constructor
A new instance of Table.
Methods inherited from Table
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,,&block @parent = parent @resources = resources @resources = @resources.to_s.singularize.classify.constantize.all if @resources.is_a?(Symbol) @native = OSXTable.new(window,@resources,,&block) instance_eval(&block) if block end |