module Shoulda::Matchers::Doublespeak
@private
Public Class Methods
Source
# File lib/shoulda/matchers/doublespeak.rb, line 22 def debug(&block) if debugging_enabled? puts block.call # rubocop:disable Rails/Output end end
Source
# File lib/shoulda/matchers/doublespeak.rb, line 18 def debugging_enabled? ENV['DEBUG_DOUBLESPEAK'] == '1' end
Source
# File lib/shoulda/matchers/doublespeak.rb, line 14 def world @_world ||= World.new end