module Shoulda::Matchers::Doublespeak

@private

Public Class Methods

debug(&block) click to toggle source
# File lib/shoulda/matchers/doublespeak.rb, line 21
def debug(&block)
  if debugging_enabled?
    puts block.call # rubocop:disable Rails/Output
  end
end
debugging_enabled?() click to toggle source
# File lib/shoulda/matchers/doublespeak.rb, line 17
def debugging_enabled?
  ENV['DEBUG_DOUBLESPEAK'] == '1'
end
world() click to toggle source
# File lib/shoulda/matchers/doublespeak.rb, line 13
def world
  @_world ||= World.new
end