Class: Canopus::DisplayMap::OverlayMap::Block

Inherits:
Data
  • Object
show all
Defined in:
lib/canopus/display_map/overlay_map.rb,
sig/display_stages.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#height ⇒ Object (readonly)

Returns the value of attribute height

Returns:

  • (Object) —

    the current value of height



5
6
7
# File 'lib/canopus/display_map/overlay_map.rb', line 5

def height
  @height
end

#item ⇒ Object (readonly)

Returns the value of attribute item

Returns:

  • (Object) —

    the current value of item



5
6
7
# File 'lib/canopus/display_map/overlay_map.rb', line 5

def item
  @item
end

#position ⇒ Object (readonly)

Returns the value of attribute position

Returns:

  • (Object) —

    the current value of position



5
6
7
# File 'lib/canopus/display_map/overlay_map.rb', line 5

def position
  @position
end

#row ⇒ Object (readonly)

Returns the value of attribute row

Returns:

  • (Object) —

    the current value of row



5
6
7
# File 'lib/canopus/display_map/overlay_map.rb', line 5

def row
  @row
end

#row_span ⇒ Object (readonly)

Returns the value of attribute row_span

Returns:

  • (Object) —

    the current value of row_span



5
6
7
# File 'lib/canopus/display_map/overlay_map.rb', line 5

def row_span
  @row_span
end

Class Method Details

.new ⇒ instance

Parameters:

  • item (Decoration::Item)
  • row (Integer)
  • height (Float)
  • row_span (Integer)
  • position (:above, :below)

Returns:

  • (instance)


57
# File 'sig/display_stages.rbs', line 57

def self.new: (Decoration::Item item, Integer row, Float height, Integer row_span, :above | :below position) -> instance