Module: CanTango::Helpers::Debug::ClassMethods

Defined in:
lib/cantango/helpers/debug.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#debug_writerObject



17
18
19
# File 'lib/cantango/helpers/debug.rb', line 17

def debug_writer
  @debug_writer ||= lambda {|m| puts m }
end

#do_debug=(value) ⇒ Object (writeonly)

Sets the attribute do_debug

Parameters:

  • value

    the value to set the attribute do_debug to.



11
12
13
# File 'lib/cantango/helpers/debug.rb', line 11

def do_debug=(value)
  @do_debug = value
end

Instance Method Details

#debug?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/cantango/helpers/debug.rb', line 13

def debug?
  @do_debug ||= false
end