Class: GOM::Object::Inspector
- Inherits:
-
Object
- Object
- GOM::Object::Inspector
- Defined in:
- lib/gom/object/inspector.rb
Overview
Inspect an object and returns it’s class and it’s properties
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
- #draft ⇒ Object
-
#initialize(object) ⇒ Inspector
constructor
A new instance of Inspector.
Constructor Details
#initialize(object) ⇒ Inspector
Returns a new instance of Inspector.
7 8 9 |
# File 'lib/gom/object/inspector.rb', line 7 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object
Returns the value of attribute object.
5 6 7 |
# File 'lib/gom/object/inspector.rb', line 5 def object @object end |
Instance Method Details
#draft ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/gom/object/inspector.rb', line 11 def draft initialize_draft set_class set_properties set_relations @draft end |