Class: Canopus::DisplayMap::OverlayMap::Inline

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

#align ⇒ Object (readonly)

Returns the value of attribute align

Returns:

  • (Object) —

    the current value of align



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

def align
  @align
end

#cell_width ⇒ Object (readonly)

Returns the value of attribute cell_width

Returns:

  • (Object) —

    the current value of cell_width



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

def cell_width
  @cell_width
end

#height ⇒ Object (readonly)

Returns the value of attribute height

Returns:

  • (Object) —

    the current value of height



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

def height
  @height
end

#item ⇒ Object (readonly)

Returns the value of attribute item

Returns:

  • (Object) —

    the current value of item



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

def item
  @item
end

#offset ⇒ Object (readonly)

Returns the value of attribute offset

Returns:

  • (Object) —

    the current value of offset



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

def offset
  @offset
end

#width ⇒ Object (readonly)

Returns the value of attribute width

Returns:

  • (Object) —

    the current value of width



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

def width
  @width
end

Class Method Details

.new ⇒ instance

Parameters:

  • item (Decoration::Item)
  • offset (Integer)
  • width (Float)
  • cell_width (Float)
  • height (Float)
  • align (:before, :after)

Returns:

  • (instance)


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

def self.new: (Decoration::Item item, Integer offset, Float width, Float cell_width, Float height, :before | :after align) -> instance