Class: Hierogloss::MdC::Quadrats

Inherits:
Group show all
Defined in:
lib/hierogloss/mdc.rb

Instance Attribute Summary

Attributes inherited from Group

#blocks

Instance Method Summary collapse

Methods inherited from Group

#initialize, #to_debug

Constructor Details

This class inherits a constructor from Hierogloss::MdC::Group

Instance Method Details

#to_linear_hieroglyphsObject

Actually render to a string here.



81
82
83
# File 'lib/hierogloss/mdc.rb', line 81

def to_linear_hieroglyphs
  super.flatten.join
end

#to_mdcObject



85
86
87
# File 'lib/hierogloss/mdc.rb', line 85

def to_mdc
  blocks.map {|b| b.to_mdc(0) }.join("-")
end