SusSourceSusBeself

class << self

Definitions

def ==(value)

Create a predicate that checks equality.

Signature

parameter value Object

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 value Object

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 value Object

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 value Object

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 value Object

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 value Object

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 value Regexp, 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 value Object

The value to compare against.

returns Be

A new Be predicate.

Implementation

def === value
	Be.new(:===, value)
end