Class: EPUB::Metadata::Meta
- Inherits:
-
Object
- Object
- EPUB::Metadata::Meta
- Includes:
- Refinee
- Defined in:
- lib/epub/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.
-
#meta_content ⇒ Object
Returns the value of attribute meta_content.
-
#name ⇒ Object
Returns the value of attribute name.
-
#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.
148 149 150 |
# File 'lib/epub/metadata.rb', line 148 def content @content end |
#id ⇒ Object
Returns the value of attribute id.
148 149 150 |
# File 'lib/epub/metadata.rb', line 148 def id @id end |
#meta_content ⇒ Object
Returns the value of attribute meta_content.
148 149 150 |
# File 'lib/epub/metadata.rb', line 148 def @meta_content end |
#name ⇒ Object
Returns the value of attribute name.
148 149 150 |
# File 'lib/epub/metadata.rb', line 148 def name @name end |
#property ⇒ Object
Returns the value of attribute property.
148 149 150 |
# File 'lib/epub/metadata.rb', line 148 def property @property end |
#refines ⇒ Object
Returns the value of attribute refines.
149 150 151 |
# File 'lib/epub/metadata.rb', line 149 def refines @refines end |
#scheme ⇒ Object
Returns the value of attribute scheme.
148 149 150 |
# File 'lib/epub/metadata.rb', line 148 def scheme @scheme end |
Instance Method Details
#inspect ⇒ Object
[View source]
165 166 167 168 169 170 |
# File 'lib/epub/metadata.rb', line 165 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
161 162 163 |
# File 'lib/epub/metadata.rb', line 161 def primary_expression? ! subexpression? end |
#refines? ⇒ Boolean Also known as: subexpression?
156 157 158 |
# File 'lib/epub/metadata.rb', line 156 def refines? ! refines.nil? end |
#to_s ⇒ Object
[View source]
172 173 174 |
# File 'lib/epub/metadata.rb', line 172 def to_s content.to_s end |