class Gumbo::Text
Attributes
original_text[R]
start_pos[R]
text[R]
Public Instance Methods
offset_range()
click to toggle source
The byte offset range where this node was extracted from, or nil if it was inserted algorithmically.
# File lib/gumbo/text.rb, line 25 def offset_range return nil unless original_text start_pos.offset...(start_pos.offset + original_text.bytesize) end
to_s()
click to toggle source
# File lib/gumbo/text.rb, line 18 def to_s original_text end
Also aliased as: inspect