Class: Reflexive::MethodLookup
- Inherits:
-
Object
- Object
- Reflexive::MethodLookup
- Defined in:
- lib/reflexive/method_lookup.rb
Instance Method Summary collapse
- #definitions ⇒ Object
- #documentations ⇒ Object
-
#initialize(options) ⇒ MethodLookup
constructor
A new instance of MethodLookup.
- #last_resort_lookup_used? ⇒ Boolean
Constructor Details
#initialize(options) ⇒ MethodLookup
Returns a new instance of MethodLookup.
5 6 7 8 9 10 |
# File 'lib/reflexive/method_lookup.rb', line 5 def initialize() unless (@klass, @level, @name = .values_at(:klass, :level, :name)).all? raise ArgumentError, "must pass :klass, :level, :name as named arguments" end @level, @name = @level.to_sym, @name.to_sym end |
Instance Method Details
#definitions ⇒ Object
12 13 14 15 |
# File 'lib/reflexive/method_lookup.rb', line 12 def definitions lookup unless @lookup_done @definitions end |
#documentations ⇒ Object
17 18 19 20 |
# File 'lib/reflexive/method_lookup.rb', line 17 def documentations lookup unless @lookup_done @documentations end |
#last_resort_lookup_used? ⇒ Boolean
22 23 24 |
# File 'lib/reflexive/method_lookup.rb', line 22 def last_resort_lookup_used? @last_resort_lookup_used end |