Module: TeLogger::TeLogHelper::ClassMethods
- Defined in:
- lib/teLogger.rb
Instance Method Summary collapse
- #logOutput ⇒ Object
- #logTag ⇒ Object
- #teLogger_output(*val) ⇒ Object
-
#teLogger_tag(val) ⇒ Object
methods called at class level by included class However if TeLogHelper is included inside Module1, only Module1 is included in Class1, Class1 will not be able to access the class level method here.
Instance Method Details
#logOutput ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/teLogger.rb', line 31 def logOutput if @telOutput.nil? [] elsif not @telOutput.is_a?(Array) [@telOutput] else @telOutput end end |
#logTag ⇒ Object
27 28 29 |
# File 'lib/teLogger.rb', line 27 def logTag @telTag end |
#teLogger_output(*val) ⇒ Object
23 24 25 |
# File 'lib/teLogger.rb', line 23 def teLogger_output(*val) @telOutput = val end |
#teLogger_tag(val) ⇒ Object
methods called at class level by included class However if TeLogHelper is included inside Module1, only Module1 is included in Class1, Class1 will not be able to access the class level method here.
19 20 21 |
# File 'lib/teLogger.rb', line 19 def teLogger_tag(val) @telTag = val end |