Class: Deplate::Source
- Inherits:
-
Object
- Object
- Deplate::Source
- Defined in:
- lib/deplate/etc.rb
Instance Attribute Summary collapse
-
#begin ⇒ Object
Returns the value of attribute begin.
-
#end ⇒ Object
Returns the value of attribute end.
-
#file ⇒ Object
Returns the value of attribute file.
-
#level_as_string ⇒ Object
Returns the value of attribute level_as_string.
-
#stats ⇒ Object
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Source
constructor
A new instance of Source.
- #log(text, mode) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Source
Returns a new instance of Source.
147 148 149 |
# File 'lib/deplate/etc.rb', line 147 def initialize(*args) @file, @stats, @begin, @end, @level_as_string = args end |
Instance Attribute Details
#begin ⇒ Object
Returns the value of attribute begin.
145 146 147 |
# File 'lib/deplate/etc.rb', line 145 def begin @begin end |
#end ⇒ Object
Returns the value of attribute end.
145 146 147 |
# File 'lib/deplate/etc.rb', line 145 def end @end end |
#file ⇒ Object
Returns the value of attribute file.
145 146 147 |
# File 'lib/deplate/etc.rb', line 145 def file @file end |
#level_as_string ⇒ Object
Returns the value of attribute level_as_string.
145 146 147 |
# File 'lib/deplate/etc.rb', line 145 def level_as_string @level_as_string end |
#stats ⇒ Object
Returns the value of attribute stats.
145 146 147 |
# File 'lib/deplate/etc.rb', line 145 def stats @stats end |
Instance Method Details
#log(text, mode) ⇒ Object
151 152 153 |
# File 'lib/deplate/etc.rb', line 151 def log(text, mode) Deplate::Core.log(text, mode, self) end |