Class: Coopy::SimpleView

Inherits:
Object
  • Object
show all
Defined in:
lib/lib/coopy/simple_view.rb

Instance Method Summary collapse

Constructor Details

#initializeSimpleView

Returns a new instance of SimpleView.



7
8
# File 'lib/lib/coopy/simple_view.rb', line 7

def initialize
end

Instance Method Details

#equals(d1, d2) ⇒ Object



27
28
29
30
31
32
# File 'lib/lib/coopy/simple_view.rb', line 27

def equals(d1,d2)
  return true if d1 == nil && d2 == nil
  return true if d1 == nil && "" + _hx_str(d2.to_s) == ""
  return true if "" + _hx_str(d1.to_s) == "" && d2 == nil
  return "" + _hx_str(d1.to_s) == "" + _hx_str(d2.to_s)
end

#get_bag(d) ⇒ Object



15
16
17
# File 'lib/lib/coopy/simple_view.rb', line 15

def get_bag(d)
  return nil
end

#get_table(d) ⇒ Object



19
20
21
# File 'lib/lib/coopy/simple_view.rb', line 19

def get_table(d)
  return nil
end

#has_structure(d) ⇒ Object



23
24
25
# File 'lib/lib/coopy/simple_view.rb', line 23

def has_structure(d)
  return false
end

#to_datum(str) ⇒ Object



34
35
36
37
# File 'lib/lib/coopy/simple_view.rb', line 34

def to_datum(str)
  return nil if str == nil
  return ::Coopy::SimpleCell.new(str)
end

#to_s(d) ⇒ Object



10
11
12
13
# File 'lib/lib/coopy/simple_view.rb', line 10

def to_s(d)
  return nil if d == nil
  return "" + _hx_str(d.to_s)
end