Class: Constraint::CArray
Overview
This is a simple test wrapper class for Array. This currently overwrites only a few methods so that most of the time the return value if filtered. As this often is the array itself, this isn’t very efficient.
Instance Attribute Summary
Attributes inherited from Shell
Attributes included from Helper
#constaint_descriptions, #constaint_handlers, #constraint_attributes, #constraints
Instance Method Summary collapse
Methods inherited from Shell
#check_constrained_value, #check_constraints, #clone, #collect_constrained_values, #collect_constrained_values_until, #collect_constrained_values_while, delegate_to_constrained_value, #dup, #generate_constrained_value, #handle_constraint_violation, inherited, #initialize, #method_missing, #next_constrained_value, #next_constrained_value!, #respond_to?, with_all_arguments_constrained, with_arguments_constrained, #with_constraints, without_constraints
Methods included from Helper
#and_constraint, #constraint_attr, #log_constraint_exception, #on_constraint_violation, #or_constraint, #replicate_constraints
Constructor Details
This class inherits a constructor from Constraint::Shell
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Constraint::Shell
Instance Method Details
#new_constrained ⇒ Object
526 527 528 |
# File 'lib/constraint.rb', line 526 def new_constrained [] end |
#process_constrained_value ⇒ Object
530 531 532 |
# File 'lib/constraint.rb', line 530 def process_constrained_value @constrained_value.collect! {|e| yield e} end |