Class: PdfTempura::Document::BoxedCharacters::SpaceGroup

Inherits:
Object
  • Object
show all
Includes:
Validation
Defined in:
lib/pdf_tempura/document/boxed_characters/groups.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Validation

included

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

#spacingObject (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

#charactersObject



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