Module: Coopy::View
- Included in:
- SimpleView, TableView
- Defined in:
- lib/coopy/view.rb
Overview
Optimize access to arrays of primitives, avoid needing each item to be wrapped individually in some kind of access object. Anticipate future optimization with view pools.
Instance Method Summary collapse
- #equals(d1, d2) ⇒ Object
- #get_bag(d) ⇒ Object
- #get_table(d) ⇒ Object
- #has_structure?(d) ⇒ Boolean
- #to_datum(str) ⇒ Object
- #to_s(d) ⇒ Object
Instance Method Details
#equals(d1, d2) ⇒ Object
25 26 27 |
# File 'lib/coopy/view.rb', line 25 def equals(d1, d2) raise NotImplementedError end |
#get_bag(d) ⇒ Object
13 14 15 |
# File 'lib/coopy/view.rb', line 13 def get_bag(d) raise NotImplementedError end |
#get_table(d) ⇒ Object
17 18 19 |
# File 'lib/coopy/view.rb', line 17 def get_table(d) raise NotImplementedError end |
#has_structure?(d) ⇒ Boolean
21 22 23 |
# File 'lib/coopy/view.rb', line 21 def has_structure?(d) raise NotImplementedError end |
#to_datum(str) ⇒ Object
29 30 31 |
# File 'lib/coopy/view.rb', line 29 def to_datum(str) raise NotImplementedError end |
#to_s(d) ⇒ Object
9 10 11 |
# File 'lib/coopy/view.rb', line 9 def to_s(d) raise NotImplementedError end |