Method: REXML::Element#raw

Defined in:
lib/rexml/element.rb

#rawObject

Evaluates to true if raw mode is set for this element. This is the case if the context has :raw set to :all or an array containing the name of this element.

The evaluation is tested against expanded_name, and so is namespace sensitive.



178
179
180
181
182
183
# File 'lib/rexml/element.rb', line 178

def raw
  @raw = (@context and @context[:raw] and
          (@context[:raw] == :all or
           @context[:raw].include? expanded_name))
           @raw
end