Method: Constraint::NilConstraint#initialize
- Defined in:
- lib/constraint.rb
#initialize(shell, name, description = nil, &block) ⇒ NilConstraint
- shell
-
The Shell class containing this constraint
- name
-
This constraint’s name
- description
-
Optional constraint description
- block
-
The constraint that must evaluate to true in order for this constraint to succeed
27 28 29 30 31 32 33 |
# File 'lib/constraint.rb', line 27 def initialize(shell, name, description=nil, &block) @shell = shell @other = shell.constraints @name = name @description = description @this = block end |