class Epuber::OpfFile::SpineItem
Attributes
idref[RW]
@return [String]
linear[RW]
@return [String]
Public Class Methods
from_node(node)
click to toggle source
@param [Nokogiri::XML::Node] node
@return [SpineItem]
# File lib/epuber/from_file/opf_file.rb, line 72 def self.from_node(node) new(node['idref'], node['linear']) end
new(idref, linear)
click to toggle source
# File lib/epuber/from_file/opf_file.rb, line 55 def initialize(idref, linear) @idref = idref @linear = linear end
Public Instance Methods
==(other)
click to toggle source
@param [SpineItem] other
@return [Boolean]
# File lib/epuber/from_file/opf_file.rb, line 64 def ==(other) @idref == other.idref end