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