Method: Arrow::HTMLComment#initialize

Defined in:
lib/arrow/htmltokenizer.rb

#initialize(raw) ⇒ HTMLComment

Returns a new instance of HTMLComment.



182
183
184
185
186
187
188
189
190
191
# File 'lib/arrow/htmltokenizer.rb', line 182

def initialize( raw )
  super

  unless (( match = CommentPattern.match(raw) ))
    raise ArgumentError,
      "Malformed comment %p" % raw
  end

  @contents = match[1]
end