class Coopy::SimpleView
Public Class Methods
new()
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 7 def initialize end
Public Instance Methods
equals(d1,d2)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 15 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 "" + _hx_str(d1.to_s) == "" + _hx_str(d2.to_s) end
get_table(t)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 59 def get_table(t) t end
hash_exists(h,str)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 41 def hash_exists(h,str) hh = h hh.include?(str) end
hash_get(h,str)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 46 def hash_get(h,str) hh = h hh[str] end
hash_set(h,str,d)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 30 def hash_set(h,str,d) hh = h begin value = d begin value1 = value hh[str] = value1 end end end
is_hash(h)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 51 def is_hash(h) h.respond_to? :keys end
is_table(t)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 55 def is_table(t) Std._is(t,::Coopy::Table) end
make_hash()
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 26 def make_hash {} end
to_datum(x)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 22 def to_datum(x) x end
to_s(d)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 10 def to_s(d) return "" if d == nil "" + _hx_str(d.to_s) end
wrap_table(t)
click to toggle source
# File lib/lib/coopy/simple_view.rb, line 63 def wrap_table(t) t end