Exception: MTP::UnsupportedProperty
- Defined in:
- lib/mtp.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#property ⇒ Object
readonly
Returns the value of attribute property.
Instance Method Summary collapse
-
#initialize(object, property, message = nil) ⇒ UnsupportedProperty
constructor
A new instance of UnsupportedProperty.
Constructor Details
#initialize(object, property, message = nil) ⇒ UnsupportedProperty
Returns a new instance of UnsupportedProperty.
87 88 89 90 91 |
# File 'lib/mtp.rb', line 87 def initialize(object, property, = nil) = "object #{object} does not support #{property} property" if .nil? super() @object, @property = object, property end |