Class: Canopus::BlockMap::Block

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#id ⇒ Object (readonly)

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



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

def id
  @id
end

#kind ⇒ Object (readonly)

Returns the value of attribute kind

Returns:

  • (Object) —

    the current value of kind



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

def kind
  @kind
end

#row ⇒ Object (readonly)

Returns the value of attribute row

Returns:

  • (Object) —

    the current value of row



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

def row
  @row
end

#text ⇒ Object (readonly)

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



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

def text
  @text
end

Class Method Details

.new ⇒ instance

Parameters:

  • id (Object)
  • row (Integer)
  • text (String)
  • kind (Symbol)

Returns:

  • (instance)


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

def self.new: (untyped id, Integer row, String text, Symbol kind) -> instance