Class: HTree::TemplateCompiler::TemplateAttrName

Inherits:
Name
  • Object
show all
Defined in:
lib/htree/template.rb

Constant Summary

Constants inherited from Name

Name::NameCache

Constants included from HTree

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

Instance Attribute Summary

Attributes inherited from Name

#local_name, #namespace_prefix, #namespace_uri

Instance Method Summary collapse

Methods inherited from Name

#initialize, #inspect, #make_exact_equal_object, #make_usual_equal_object, new, #output, parse_attribute_name, parse_element_name, #qualified_name, #to_s, #universal_name, #xmlns?

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::Name

Instance Method Details

#output_attribute(text, out, context) ⇒ Object



951
952
953
954
955
956
# File 'lib/htree/template.rb', line 951

def output_attribute(text, out, context)
  output(out, context)
  out.output_string '="'
  out.output_dynamic_attvalue(text.to_s)
  out.output_string '"'
end