Exception: UsageMod::OpenURIBadFormatError
- Defined in:
- lib/Usage.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri) ⇒ OpenURIBadFormatError
constructor
A new instance of OpenURIBadFormatError.
Constructor Details
#initialize(uri) ⇒ OpenURIBadFormatError
Returns a new instance of OpenURIBadFormatError.
130 131 132 133 |
# File 'lib/Usage.rb', line 130 def initialize(uri) @uri = uri super("URI must be of the form: http:// or ftp://, not '#{uri}'") end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
129 130 131 |
# File 'lib/Usage.rb', line 129 def uri @uri end |