Module: Fix::Helper::RequirementHelper

Includes:
LetReaderHelper
Included in:
It, Its
Defined in:
lib/fix/helper/requirement_helper.rb

Instance Method Summary collapse

Methods included from LetReaderHelper

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fix::Helper::LetReaderHelper

Instance Method Details

#MAY(definition) ⇒ Object Also known as: is_OPTIONAL_to



33
34
35
# File 'lib/fix/helper/requirement_helper.rb', line 33

def MAY definition
  ExpectationLow.new true, definition, *@args
end

#MUST(definition) ⇒ Object Also known as: is_REQUIRED_to, SHALL



8
9
10
# File 'lib/fix/helper/requirement_helper.rb', line 8

def MUST definition
  ExpectationHigh.new true, definition, *@args
end

#MUST_NOT(definition) ⇒ Object Also known as: SHALL_NOT



15
16
17
# File 'lib/fix/helper/requirement_helper.rb', line 15

def MUST_NOT definition
  ExpectationHigh.new false, definition, *@args
end

#SHOULD(definition) ⇒ Object Also known as: is_RECOMMENDED_to



21
22
23
# File 'lib/fix/helper/requirement_helper.rb', line 21

def SHOULD definition
  ExpectationMedium.new true, definition, *@args
end

#SHOULD_NOT(definition) ⇒ Object Also known as: is_NOT_RECOMMENDED_to



27
28
29
# File 'lib/fix/helper/requirement_helper.rb', line 27

def SHOULD_NOT definition
  ExpectationMedium.new false, definition, *@args
end