Module: Ramcrest::Comparable

Defined in:
lib/ramcrest/comparable.rb

Defined Under Namespace

Classes: Matcher

Class Method Summary collapse

Class Method Details

.greater_or_equal_to(expected) ⇒ Object



11
12
13
# File 'lib/ramcrest/comparable.rb', line 11

def greater_or_equal_to(expected)
  Matcher.new("greater than or equal to", :>=, expected)
end

.greater_than(expected) ⇒ Object



7
8
9
# File 'lib/ramcrest/comparable.rb', line 7

def greater_than(expected)
  Matcher.new("greater than", :>, expected)
end

.less_or_equal_to(expected) ⇒ Object



19
20
21
# File 'lib/ramcrest/comparable.rb', line 19

def less_or_equal_to(expected)
  Matcher.new("less than or equal to", :<=, expected)
end

.less_than(expected) ⇒ Object



15
16
17
# File 'lib/ramcrest/comparable.rb', line 15

def less_than(expected)
  Matcher.new("less than", :<, expected)
end