Parent

Included Modules

Class Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Be

Public Class Methods

new(*args, &block) click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 41
41:         def initialize(*args, &block)
42:           @args = args
43:         end

Public Instance Methods

description() click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 58
58:         def description
59:           "be"
60:         end
failure_message_for_should() click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 50
50:         def failure_message_for_should
51:           "expected #{@actual.inspect} to evaluate to true"
52:         end
failure_message_for_should_not() click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 54
54:         def failure_message_for_should_not
55:           "expected #{@actual.inspect} to evaluate to false"
56:         end
matches?(actual) click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 45
45:         def matches?(actual)
46:           @actual = actual
47:           !!@actual
48:         end

Private Instance Methods

args_to_s() click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 70
70:         def args_to_s
71:           @args.empty? ? "" : parenthesize(inspected_args.join(', '))
72:         end
args_to_sentence() click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 86
86:         def args_to_sentence
87:           to_sentence(@args)
88:         end
expected_to_sentence() click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 82
82:         def expected_to_sentence
83:           split_words(@expected)
84:         end
inspected_args() click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 78
78:         def inspected_args
79:           @args.collect{|a| a.inspect}
80:         end
parenthesize(string) click to toggle source
    # File lib/rspec/matchers/built_in/be.rb, line 74
74:         def parenthesize(string)
75:           "(#{string})"
76:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.