Module: Leap::GoalMethodsDocumentation

Defined in:
lib/leap/goal_methods_documentation.rb

Overview

Note:

This module is provided due to limitations in the YARD documentation system.

Used strictly for documenting the dynamic methods created by Leap::Subject#decide

See Also:

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#your_goal_name(*considerations = [], options = {}) ⇒ Object

Computes a previously-defined Leap decision named your_goal_name.

Parameters:

  • considerations (optional, Array)

    An ordered array of additional details, immutable during the course of deliberation, that should be made available to each committee for provision, upon request, to quorums.

  • options (optional, Hash) (defaults to: {})

    Additional options

Returns:

  • The value of the newly-decided goal–or, if there is no committee with the same name as the goal, a hash of committee reports

Raises:

  • (Leap::NoSolutionError)

    Leap could not compute the decision’s goal on this subject instance given its characteristics and compliance constraint.



16
17
18
# File 'lib/leap/goal_methods_documentation.rb', line 16

def method_missing(*args, &blk)
  super
end