Class: Deplate::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/deplate/etc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#beginObject

Returns the value of attribute begin.



145
146
147
# File 'lib/deplate/etc.rb', line 145

def begin
  @begin
end

#endObject

Returns the value of attribute end.



145
146
147
# File 'lib/deplate/etc.rb', line 145

def end
  @end
end

#fileObject

Returns the value of attribute file.



145
146
147
# File 'lib/deplate/etc.rb', line 145

def file
  @file
end

#level_as_stringObject

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

#statsObject

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