class EPUB::CFI::CharacterOffset
Attributes
assertion[R]
offset[R]
value[R]
Public Class Methods
new(value, assertion=nil)
click to toggle source
# File lib/epub/cfi.rb, line 262 def initialize(value, assertion=nil) @value, @assertion = value, assertion @string_cache = nil end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/epub/cfi.rb, line 271 def <=>(other) value <=> other.value end
to_s()
click to toggle source
# File lib/epub/cfi.rb, line 267 def to_s @string_cache ||= ":#{value}#{assertion}" # need escape? end