Class: Tableview::ViewHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/tableview/view_handler.rb

Defined Under Namespace

Classes: Body, Cell, Footer, Header, Part, Row, Table, TablePiece

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#tableObject (readonly)

Returns the value of attribute table.



7
8
9
# File 'lib/tableview/view_handler.rb', line 7

def table
  @table
end

Class Method Details

.dsl(opts = {}) {|ret| ... } ⇒ Object

Yields:

  • (ret)


9
10
11
12
13
14
15
# File 'lib/tableview/view_handler.rb', line 9

def self.dsl(opts = {}, &block)
  ret = Table.new opts
  #ret.instance_eval &block
  yield(ret)
  ret.create_table!
  ret
end