Class: Observable::Instrumenter::ArgumentExtractor
- Inherits:
-
Object
- Object
- Observable::Instrumenter::ArgumentExtractor
- Defined in:
- lib/observable/instrumenter.rb
Instance Method Summary collapse
- #extract ⇒ Object
-
#initialize(caller_location, caller_binding = nil) ⇒ ArgumentExtractor
constructor
A new instance of ArgumentExtractor.
Constructor Details
#initialize(caller_location, caller_binding = nil) ⇒ ArgumentExtractor
Returns a new instance of ArgumentExtractor.
336 337 338 339 340 |
# File 'lib/observable/instrumenter.rb', line 336 def initialize(caller_location, caller_binding = nil) @caller_location = caller_location @caller_binding = caller_binding @method_name = caller_location.label end |
Instance Method Details
#extract ⇒ Object
342 343 344 345 |
# File 'lib/observable/instrumenter.rb', line 342 def extract return {} unless @caller_binding extract_from_binding end |