Class: Pione::System::PioneObject
- Inherits:
-
Object
- Object
- Pione::System::PioneObject
- Defined in:
- lib/pione/system/object.rb
Overview
PioneObject is a base class for PIONE system.
Instance Method Summary collapse
-
#check_argument_type(val, klass) ⇒ void
Checks argument type.
-
#finalize ⇒ void
Finalizes this object.
-
#ping ⇒ Object
Returns true.
-
#uuid ⇒ String
Returns this object's uuid.
Instance Method Details
#check_argument_type(val, klass) ⇒ void
This method returns an undefined value.
Checks argument type. Raises a type error if the value is not kind of the type.
12 13 14 |
# File 'lib/pione/system/object.rb', line 12 def check_argument_type(val, klass) raise TypeError.new(val) unless val.kind_of?(klass) end |
#finalize ⇒ void
This method returns an undefined value.
Finalizes this object.
30 31 32 |
# File 'lib/pione/system/object.rb', line 30 def finalize # do nothing end |
#ping ⇒ Object
Returns true.
17 18 19 |
# File 'lib/pione/system/object.rb', line 17 def ping true end |