class Playbook::Props::Percentage
def numeric_in_range?(value)
def numeric_in_range?(value) value.is_a?(::Numeric) && value <= 100 && value >= 0 end
def validate(value)
def validate(value) value.nil? || numeric_in_range?(value) end
def numeric_in_range?(value) value.is_a?(::Numeric) && value <= 100 && value >= 0 end
def validate(value) value.nil? || numeric_in_range?(value) end