Class: EPUB::Publication::Package::Metadata::Meta

Inherits:
Object
  • Object
show all
Includes:
Refinee
Defined in:
lib/epub/publication/package/metadata.rb

Constant Summary

Constants included from Refinee

Refinee::PROPERTIES

Instance Attribute Summary collapse

Attributes included from Refinee

#refiners

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content


127
128
129
# File 'lib/epub/publication/package/metadata.rb', line 127

def content
  @content
end

#idObject

Returns the value of attribute id


127
128
129
# File 'lib/epub/publication/package/metadata.rb', line 127

def id
  @id
end

#propertyObject

Returns the value of attribute property


127
128
129
# File 'lib/epub/publication/package/metadata.rb', line 127

def property
  @property
end

#refinesObject

Returns the value of attribute refines


128
129
130
# File 'lib/epub/publication/package/metadata.rb', line 128

def refines
  @refines
end

#schemeObject

Returns the value of attribute scheme


127
128
129
# File 'lib/epub/publication/package/metadata.rb', line 127

def scheme
  @scheme
end

Instance Method Details

#inspectObject


144
145
146
147
148
149
# File 'lib/epub/publication/package/metadata.rb', line 144

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


140
141
142
# File 'lib/epub/publication/package/metadata.rb', line 140

def primary_expression?
  ! subexpression?
end

#refines?Boolean Also known as: subexpression?


135
136
137
# File 'lib/epub/publication/package/metadata.rb', line 135

def refines?
  ! refines.nil?
end

#to_sObject


151
152
153
# File 'lib/epub/publication/package/metadata.rb', line 151

def to_s
  content.to_s
end