Class: EPUB::Publication::Package::Metadata::Meta
- Inherits:
-
Object
- Object
- EPUB::Publication::Package::Metadata::Meta
- Includes:
- Refinee
- Defined in:
- lib/epub/publication/package/metadata.rb
Constant Summary
Constants included from Refinee
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#id ⇒ Object
Returns the value of attribute id.
-
#property ⇒ Object
Returns the value of attribute property.
-
#refines ⇒ Object
Returns the value of attribute refines.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
Attributes included from Refinee
Instance Method Summary collapse
- #inspect ⇒ Object
- #primary_expression? ⇒ Boolean
- #refines? ⇒ Boolean (also: #subexpression?)
- #to_s ⇒ Object
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
131 132 133 |
# File 'lib/epub/publication/package/metadata.rb', line 131 def content @content end |
#id ⇒ Object
Returns the value of attribute id.
131 132 133 |
# File 'lib/epub/publication/package/metadata.rb', line 131 def id @id end |
#property ⇒ Object
Returns the value of attribute property.
131 132 133 |
# File 'lib/epub/publication/package/metadata.rb', line 131 def property @property end |
#refines ⇒ Object
Returns the value of attribute refines.
132 133 134 |
# File 'lib/epub/publication/package/metadata.rb', line 132 def refines @refines end |
#scheme ⇒ Object
Returns the value of attribute scheme.
131 132 133 |
# File 'lib/epub/publication/package/metadata.rb', line 131 def scheme @scheme end |
Instance Method Details
#inspect ⇒ Object
148 149 150 151 152 153 |
# File 'lib/epub/publication/package/metadata.rb', line 148 def inspect ivs = instance_variables.map {|iv| [iv, instance_variable_get(iv).inspect].join('=') }.join(' ') '<#%s:%#0x %s>' % [self.class, __id__, ivs] end |
#primary_expression? ⇒ Boolean
144 145 146 |
# File 'lib/epub/publication/package/metadata.rb', line 144 def primary_expression? ! subexpression? end |
#refines? ⇒ Boolean Also known as: subexpression?
139 140 141 |
# File 'lib/epub/publication/package/metadata.rb', line 139 def refines? ! refines.nil? end |
#to_s ⇒ Object
155 156 157 |
# File 'lib/epub/publication/package/metadata.rb', line 155 def to_s content.to_s end |