lib/faker/lorem.rb
# If an array or range is passed, a random value will be selected.
# All other values are simply returned.
If an array or range is passed, a random value will be selected.
All other values are simply returned.
If an array or range is passed a random value will be selected . All other values are simply returned .
def resolve(value)
        case value
        when Array then sample(value)
        when Range then rand value
        else value
        end
      end
def resolve ( value ) case value when Array then sample ( value ) when Range then rand value else value end end
If an array or range is passed, a random value will be selected.
If an array or range is passed a random value will be selected .
value