Exception: RSS::NSError

Inherits:
InvalidRSSError show all
Defined in:
lib/rss/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, prefix, require_uri) ⇒ NSError

Returns a new instance of NSError.



46
47
48
49
50
# File 'lib/rss/parser.rb', line 46

def initialize(tag, prefix, require_uri)
  @tag, @prefix, @uri = tag, prefix, require_uri
  super("prefix <#{prefix}> doesn't associate uri " <<
        "<#{require_uri}> in tag <#{tag}>")
end

Instance Attribute Details

#prefixObject (readonly)

Returns the value of attribute prefix.



45
46
47
# File 'lib/rss/parser.rb', line 45

def prefix
  @prefix
end

#tagObject (readonly)

Returns the value of attribute tag.



45
46
47
# File 'lib/rss/parser.rb', line 45

def tag
  @tag
end

#uriObject (readonly)

Returns the value of attribute uri.



45
46
47
# File 'lib/rss/parser.rb', line 45

def uri
  @uri
end