module Orchestrator::Constants

Constants

Close
Down
Off
Off_vars
On
On_vars
Open
Short
Up

Public Instance Methods

in_range(num, max, min = 0) click to toggle source
# File lib/orchestrator/utilities/constants.rb, line 29
def in_range(num, max, min = 0)
    num = min if num < min
    num = max if num > max
    num
end
is_affirmative?(val) click to toggle source
# File lib/orchestrator/utilities/constants.rb, line 35
def is_affirmative?(val)
    On_vars.include?(val)
end
is_negatory?(val) click to toggle source
# File lib/orchestrator/utilities/constants.rb, line 39
def is_negatory?(val)
    Off_vars.include?(val)
end