Module: FunWith::Testing::VerbosityMethods::InstanceMethods

Defined in:
lib/fun_with/testing/verbosity_methods.rb

Instance Method Summary collapse

Instance Method Details

#puts_if_verbose(msg, stream = $stdout) ⇒ Object



27
28
29
# File 'lib/fun_with/testing/verbosity_methods.rb', line 27

def puts_if_verbose( msg, stream = $stdout )
  stream.puts( msg ) if self.verbose?
end

#verbose?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/fun_with/testing/verbosity_methods.rb', line 23

def verbose?
  self.class.verbose?
end