Class: EPUB::Publication::Package::Guide
- Inherits:
-
Object
- Object
- EPUB::Publication::Package::Guide
- Includes:
- Inspector::PublicationModel
- Defined in:
- lib/epub/publication/package/guide.rb
Defined Under Namespace
Classes: Reference
Instance Attribute Summary collapse
-
#package ⇒ Object
Returns the value of attribute package.
-
#references ⇒ Object
Returns the value of attribute references.
Instance Method Summary collapse
- #<<(reference) ⇒ Object
-
#initialize ⇒ Guide
constructor
A new instance of Guide.
Methods included from Inspector::PublicationModel
Constructor Details
#initialize ⇒ Guide
Returns a new instance of Guide.
8 9 10 11 12 13 14 |
# File 'lib/epub/publication/package/guide.rb', line 8 def initialize Reference::TYPES.each do |type| variable_name = '@' + type.gsub('-', '_') instance_variable_set variable_name, nil end @references = [] end |
Instance Attribute Details
#package ⇒ Object
Returns the value of attribute package.
6 7 8 |
# File 'lib/epub/publication/package/guide.rb', line 6 def package @package end |
#references ⇒ Object
Returns the value of attribute references.
6 7 8 |
# File 'lib/epub/publication/package/guide.rb', line 6 def references @references end |
Instance Method Details
#<<(reference) ⇒ Object
[View source]
16 17 18 19 |
# File 'lib/epub/publication/package/guide.rb', line 16 def <<(reference) reference.guide = self references << reference end |