Class: Coopy::CellInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCellInfo

Returns a new instance of CellInfo.



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

def initialize
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



12
13
14
# File 'lib/lib/coopy/cell_info.rb', line 12

def category
  @category
end

#category_given_trObject

Returns the value of attribute category_given_tr.



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

def category_given_tr
  @category_given_tr
end

#conflictedObject

Returns the value of attribute conflicted.



16
17
18
# File 'lib/lib/coopy/cell_info.rb', line 16

def conflicted
  @conflicted
end

#lvalueObject

Returns the value of attribute lvalue.



18
19
20
# File 'lib/lib/coopy/cell_info.rb', line 18

def lvalue
  @lvalue
end

#pretty_valueObject

Returns the value of attribute pretty_value.



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

def pretty_value
  @pretty_value
end

#pvalueObject

Returns the value of attribute pvalue.



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

def pvalue
  @pvalue
end

#rvalueObject

Returns the value of attribute rvalue.



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

def rvalue
  @rvalue
end

#separatorObject

Returns the value of attribute separator.



14
15
16
# File 'lib/lib/coopy/cell_info.rb', line 14

def separator
  @separator
end

#updatedObject

Returns the value of attribute updated.



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

def updated
  @updated
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#to_sObject



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

def to_s 
  return @value if !@updated
  return _hx_str(@lvalue) + "::" + _hx_str(@rvalue) if !@conflicted
  return _hx_str(@pvalue) + "||" + _hx_str(@lvalue) + "::" + _hx_str(@rvalue)
end