Class: HTree::Text::Loc

Inherits:
Location show all
Includes:
Leaf::Loc, Trav
Defined in:
lib/htree/loc.rb,
lib/htree/modules.rb

Constant Summary

Constants included from HTree

DefaultContext, ElementContent, ElementExclusions, ElementInclusions, EmptyBindingObject, HTMLContext, NamedCharacters, NamedCharactersPattern, OmittedAttrName

Instance Attribute Summary

Attributes inherited from Location

#index, #node, #parent

Instance Method Summary collapse

Methods included from Trav

#traverse_text_internal

Methods included from Leaf::Trav

#traverse_all_element, #traverse_some_element, #traverse_text_internal

Methods included from HTree::Traverse

#bogusetag?, #comment?, #doc?, #doctype?, #elem?, #get_subnode, #procins?, #text?, #traverse_text, #xmldecl?

Methods inherited from Location

#extract_text, #index_list, #initialize, #loc_list, #make_exact_equal_object, #make_loc, #path, #pretty_print, #subst, #subst_itself, #top

Methods included from HTree

#==, build_node, #check_equality, compile_template, #exact_equal?, #exact_equal_object, expand_template, fix_element, fix_structure_list, frozen_string, #hash, #make_exact_equal_object, #make_usual_equal_object, parse, parse_as, parse_pairs, parse_xml, scan, #usual_equal_object, with_frozen_string_hash

Constructor Details

This class inherits a constructor from HTree::Location

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


368
# File 'lib/htree/loc.rb', line 368

def empty?() @node.empty? end

#stripObject



367
# File 'lib/htree/loc.rb', line 367

def strip() @node.strip end

#to_sObject



366
# File 'lib/htree/loc.rb', line 366

def to_s() @node.to_s end