Class: Hierogloss::MdC::Group

Inherits:
Block
  • Object
show all
Defined in:
lib/hierogloss/mdc.rb

Direct Known Subclasses

Quadrats, Sequence, Stack

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(blocks) ⇒ Group

Returns a new instance of Group.



39
40
41
# File 'lib/hierogloss/mdc.rb', line 39

def initialize(blocks)
  @blocks = blocks
end

Instance Attribute Details

#blocksObject (readonly)

Returns the value of attribute blocks.



37
38
39
# File 'lib/hierogloss/mdc.rb', line 37

def blocks
  @blocks
end

Instance Method Details

#to_debugObject



43
44
45
# File 'lib/hierogloss/mdc.rb', line 43

def to_debug
  blocks.map {|b| b.to_debug }
end

#to_linear_hieroglyphsObject



47
48
49
# File 'lib/hierogloss/mdc.rb', line 47

def to_linear_hieroglyphs
  blocks.map {|b| b.to_linear_hieroglyphs }
end