File: raw.rb

package info (click to toggle)
ruby-ox 2.14.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,504 kB
  • sloc: xml: 39,683; ansic: 9,626; ruby: 6,441; sh: 47; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
module Ox
  # Raw elements are used to inject existing XML strings into a document
  # WARNING: Use of this feature can result in invalid XML, since `value` is
  # injected as-is.
  class Raw < Node
    # Creates a new Raw element with the specified value.
    # - +value+ [String] string value for the comment
    def initialize(value)
      super
    end
  end # Raw
end # Ox