Class: Coopy::TableView

Inherits:
Object
  • Object
show all
Includes:
View
Defined in:
lib/coopy/table_view.rb

Instance Method Summary collapse

Instance Method Details

#equals(d1, d2) ⇒ Object



21
22
23
24
# File 'lib/coopy/table_view.rb', line 21

def equals(d1, d2)
  puts("TableView#equals called")
  false
end

#get_bag(d) ⇒ Object



9
10
11
# File 'lib/coopy/table_view.rb', line 9

def get_bag(d)
  nil
end

#get_table(d) ⇒ Object



13
14
15
# File 'lib/coopy/table_view.rb', line 13

def get_table(d)
  d
end

#has_structure?(d) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/coopy/table_view.rb', line 17

def has_structure?(d)
  true
end

#to_datum(str) ⇒ Object



26
27
28
# File 'lib/coopy/table_view.rb', line 26

def to_datum(str)
  Coopy::SimpleCell.new(str)
end

#to_s(d) ⇒ Object



5
6
7
# File 'lib/coopy/table_view.rb', line 5

def to_s(d)
  d.to_s
end