Class: SpheroBase
- Inherits:
-
Object
- Object
- SpheroBase
- Defined in:
- lib/rubysphero.rb
Overview
mod
Direct Known Subclasses
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
46 47 48 |
# File 'lib/rubysphero.rb', line 46 def debug @debug end |
Instance Method Details
#logd(log_str = "") ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/rubysphero.rb', line 48 def logd(log_str="") if @debug==nil then # chill. elsif @debug==true then puts DateTime.now.strftime("%Y-%m-%d %H:%M:%S.%L") + " " + log_str end # elsif end |