Class: Canopus::DisplayMap::LineSet

Inherits:
Struct
  • Object
show all
Defined in:
lib/canopus/display_map/line_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rows) ⇒ LineSet

Returns a new instance of LineSet.



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

def initialize(rows)
  super(rows, Canopus::DisplayMap::Summary.new(1, rows.length, 0))
  freeze
end

Instance Attribute Details

#rows ⇒ Object

Returns the value of attribute rows

Returns:

  • (Object) —

    the current value of rows



3
4
5
# File 'lib/canopus/display_map/line_set.rb', line 3

def rows
  @rows
end

#summary ⇒ Object

Returns the value of attribute summary

Returns:

  • (Object) —

    the current value of summary



3
4
5
# File 'lib/canopus/display_map/line_set.rb', line 3

def summary
  @summary
end