Module: Leap::DeliberationsAccessor
- Defined in:
- lib/leap/deliberations_accessor.rb
Overview
Provides an intelligent accessor method for a subject instance’s deliberations.
Instance Method Summary collapse
-
#deliberations ⇒ Object
Returns a special hash of deliberations that will make necessary decisions if they have not yet been made.
Instance Method Details
#deliberations ⇒ Object
Returns a special hash of deliberations that will make necessary decisions if they have not yet been made.
6 7 8 9 10 11 12 |
# File 'lib/leap/deliberations_accessor.rb', line 6 def deliberations @deliberations ||= Hash.new do |h, k| return nil unless respond_to? k send k h[k] end end |