class << self
Definitions
def ==(value)
Create a predicate that checks equality.
Signature
-
parameter
valueObject The value to compare against.
-
returns
Be A new Be predicate.
Implementation
def == value
Be.new(:==, value)
end
def !=(value)
Create a predicate that checks inequality.
Signature
-
parameter
valueObject The value to compare against.
-
returns
Be A new Be predicate.
Implementation
def != value
Be.new(:!=, value)
end
def >(value)
Create a predicate that checks if the subject is greater than a value.
Signature
-
parameter
valueObject The value to compare against.
-
returns
Be A new Be predicate.
Implementation
def > value
Be.new(:>, value)
end
def >=(value)
Create a predicate that checks if the subject is greater than or equal to a value.
Signature
-
parameter
valueObject The value to compare against.
-
returns
Be A new Be predicate.
Implementation
def >= value
Be.new(:>=, value)
end
def <(value)
Create a predicate that checks if the subject is less than a value.
Signature
-
parameter
valueObject The value to compare against.
-
returns
Be A new Be predicate.
Implementation
def < value
Be.new(:<, value)
end
def <=(value)
Create a predicate that checks if the subject is less than or equal to a value.
Signature
-
parameter
valueObject The value to compare against.
-
returns
Be A new Be predicate.
Implementation
def <= value
Be.new(:<=, value)
end
def =~(value)
Create a predicate that checks if the subject matches a pattern.
Signature
-
parameter
valueRegexp, Object The pattern to match against.
-
returns
Be A new Be predicate.
Implementation
def =~ value
Be.new(:=~, value)
end
def ===(value)
Create a predicate that checks case equality.
Signature
-
parameter
valueObject The value to compare against.
-
returns
Be A new Be predicate.
Implementation
def === value
Be.new(:===, value)
end