You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
str?# equivalent to type?(String)int?# equivalent to type?(Integer)float?# equivalent to type?(Float)decimal?# equivalent to type?(BigDecimal)bool?# equivalent to type?(Boolean)date?# equivalent to type?(Date)time?# equivalent to type?(Time)date_time?# equivalent to type?(DateTime)array?# equivalent to type?(Array)hash?# equivalent to type?(Hash)
Number, String, Collection
empty?# Checks that either the array, string, or hash is empty.filled?# Checks that either the value is non-nil and, in the case of a String, Hash, or Array, non-empty.gt?# Checks that the value is greater than the given value.gteq?# Checks that the value is greater than or equal to the given value.lt?# Checks that the value is less than the given value.lteq?# Checks that the value is less than or equal to the given value.max_size?# Check that an array’s size (or a string’s length) is less than or equal to the given value.min_size?# Checks that an array’s size (or a string’s length) is greater than or equal to the given value.size?(int)# Checks that an array’s size (or a string’s length) is equal to the given value.size?(range)# Checks that an array’s size (or a string’s length) is within a range of values.format?# Checks that a string matches a given regular expression.included_in?# Checks that a value is included in a given array.excluded_from?# Checks that a value is excluded from a given array.