Class: PdfTempura::Document::BoxedCharacters::SpaceGroup
- Inherits:
-
Object
- Object
- PdfTempura::Document::BoxedCharacters::SpaceGroup
- Includes:
- Validation
- Defined in:
- lib/pdf_tempura/document/boxed_characters/groups.rb
Instance Attribute Summary collapse
-
#spacing ⇒ Object
readonly
Returns the value of attribute spacing.
Instance Method Summary collapse
- #characters ⇒ Object
- #each_supported_character(&block) ⇒ Object
-
#initialize(units) ⇒ SpaceGroup
constructor
A new instance of SpaceGroup.
- #width(ignored, ignored2) ⇒ Object
Methods included from Validation
Constructor Details
#initialize(units) ⇒ SpaceGroup
Returns a new instance of SpaceGroup.
35 36 37 38 |
# File 'lib/pdf_tempura/document/boxed_characters/groups.rb', line 35 def initialize(units) @spacing = units validate! end |
Instance Attribute Details
#spacing ⇒ Object (readonly)
Returns the value of attribute spacing.
31 32 33 |
# File 'lib/pdf_tempura/document/boxed_characters/groups.rb', line 31 def spacing @spacing end |
Instance Method Details
#characters ⇒ Object
40 41 42 |
# File 'lib/pdf_tempura/document/boxed_characters/groups.rb', line 40 def characters 0 end |
#each_supported_character(&block) ⇒ Object
44 45 46 |
# File 'lib/pdf_tempura/document/boxed_characters/groups.rb', line 44 def each_supported_character(&block) #we support no characters, nein! end |
#width(ignored, ignored2) ⇒ Object
48 49 50 |
# File 'lib/pdf_tempura/document/boxed_characters/groups.rb', line 48 def width(ignored,ignored2) spacing end |