Class: Caliph::Describer
- Inherits:
-
Object
- Object
- Caliph::Describer
- Defined in:
- lib/caliph/describer.rb
Instance Attribute Summary collapse
-
#apex ⇒ Object
Returns the value of attribute apex.
Instance Method Summary collapse
- #describe {|apex| ... } ⇒ Object
-
#initialize(apex) ⇒ Describer
constructor
A new instance of Describer.
- #inspect ⇒ Object
Constructor Details
#initialize(apex) ⇒ Describer
Returns a new instance of Describer.
5 6 7 |
# File 'lib/caliph/describer.rb', line 5 def initialize(apex) @apex = apex end |
Instance Attribute Details
#apex ⇒ Object
Returns the value of attribute apex.
3 4 5 |
# File 'lib/caliph/describer.rb', line 3 def apex @apex end |
Instance Method Details
#describe {|apex| ... } ⇒ Object
9 10 11 12 13 |
# File 'lib/caliph/describer.rb', line 9 def describe(&block) apex.definition_watcher = self yield apex return apex end |
#inspect ⇒ Object
15 16 17 |
# File 'lib/caliph/describer.rb', line 15 def inspect "Watcher@#{"%#0x" % apex.object_id}" end |