Module: HTree::Tag

Includes:
HTree
Included in:
ETag, STag
Defined in:
lib/htree/modules.rb,
lib/htree/raw_string.rb

Overview

:stopdoc:

Constant Summary

Constants included from HTree

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

Instance Method Summary collapse

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

Instance Method Details

#init_raw_stringObject



34
# File 'lib/htree/raw_string.rb', line 34

def init_raw_string() @raw_string = nil end

#raw_string=(arg) ⇒ Object



35
# File 'lib/htree/raw_string.rb', line 35

def raw_string=(arg) @raw_string = HTree.frozen_string(arg) end

#raw_string_internal(result) ⇒ Object



36
37
38
39
# File 'lib/htree/raw_string.rb', line 36

def raw_string_internal(result)
  throw :raw_string_tag if !@raw_string
  result << @raw_string
end