Module: CanTango::Helpers::Debug::ClassMethods
- Defined in:
- lib/cantango/helpers/debug.rb
Instance Attribute Summary collapse
- #debug_writer ⇒ Object
-
#do_debug ⇒ Object
writeonly
Sets the attribute do_debug.
Instance Method Summary collapse
Instance Attribute Details
#debug_writer ⇒ Object
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
11 12 13 |
# File 'lib/cantango/helpers/debug.rb', line 11 def do_debug=(value) @do_debug = value end |
Instance Method Details
#debug? ⇒ Boolean
13 14 15 |
# File 'lib/cantango/helpers/debug.rb', line 13 def debug? @do_debug ||= false end |