Class: Caliph::Describer

Inherits:
Object
  • Object
show all
Defined in:
lib/caliph/describer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#apexObject

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

Yields:



9
10
11
12
13
# File 'lib/caliph/describer.rb', line 9

def describe(&block)
  apex.definition_watcher = self
  yield apex
  return apex
end

#inspectObject



15
16
17
# File 'lib/caliph/describer.rb', line 15

def inspect
  "Watcher@#{"%#0x" % apex.object_id}"
end