Exception: MTP::InvalidObject
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object, message = nil) ⇒ InvalidObject
constructor
A new instance of InvalidObject.
Constructor Details
#initialize(object, message = nil) ⇒ InvalidObject
Returns a new instance of InvalidObject.
96 97 98 99 100 |
# File 'lib/mtp.rb', line 96 def initialize(object, = nil) = "object #{object} is not valid" if .nil? super() @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
95 96 97 |
# File 'lib/mtp.rb', line 95 def object @object end |