class Coopy::RowChange
Attributes
action[RW]
cond[RW]
conflicted[RW]
conflicting_parent_val[RW]
conflicting_val[RW]
is_key[RW]
val[RW]
Public Class Methods
new()
click to toggle source
# File lib/lib/coopy/row_change.rb, line 7 def initialize end
Public Instance Methods
to_s()
click to toggle source
# File lib/lib/coopy/row_change.rb, line 35 def to_s _hx_str(@action) + " " + _hx_str(self.show_map(@cond)) + " : " + _hx_str(self.show_map(@val)) end
Protected Instance Methods
show_map(m)
click to toggle source
# File lib/lib/coopy/row_change.rb, line 20 def show_map(m) return "{}" if m == nil txt = "" _it = ::Rb::RubyIterator.new(m.keys) while(_it.has_next) do k = _it._next txt += ", " if txt != "" v = m[k] txt += _hx_str(k) + "=" + _hx_str(v.to_s) end "{ " + _hx_str(txt) + " }" end