Parent

Methods

HTMLComment

Class representing an HTML comment

Attributes

contents[RW]

Public Class Methods

new(text) click to toggle source
# File lib/yadis/htmltokenizer.rb, line 208
def initialize(text)
  super(text)
  temp_arr = text.scan(/^<!--\s*(.*?)\s*-->$/)
  if temp_arr[0].nil?
    raise "Text passed to HTMLComment.initialize is not a comment"
  end

  @contents = temp_arr[0][0]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.