Class: RgGen::RegisterMap::GenericMap::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/rggen/core_components/register_map/generic_map.rb

Defined Under Namespace

Classes: Position

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, sheet, row, column) ⇒ Cell

Returns a new instance of Cell.



7
8
9
# File 'lib/rggen/core_components/register_map/generic_map.rb', line 7

def initialize(file, sheet, row, column)
  @position = Position.new(file, sheet, row, column)
end

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



12
13
14
# File 'lib/rggen/core_components/register_map/generic_map.rb', line 12

def position
  @position
end

#valueObject

Returns the value of attribute value.



11
12
13
# File 'lib/rggen/core_components/register_map/generic_map.rb', line 11

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/rggen/core_components/register_map/generic_map.rb', line 14

def empty?
  value.to_s.empty?
end