Class: Chainsaw::Format
- Inherits:
-
Object
- Object
- Chainsaw::Format
- Defined in:
- lib/chainsaw/format.rb
Instance Attribute Summary collapse
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#time_format ⇒ Object
Returns the value of attribute time_format.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, attributes = {}) ⇒ Format
constructor
A new instance of Format.
Constructor Details
#initialize(type, attributes = {}) ⇒ Format
Returns a new instance of Format.
7 8 9 10 11 12 |
# File 'lib/chainsaw/format.rb', line 7 def initialize(type, attributes = {}) @type = type attributes.each do |key, value| send(:"#{key}=", value) end end |
Instance Attribute Details
#pattern ⇒ Object
Returns the value of attribute pattern.
5 6 7 |
# File 'lib/chainsaw/format.rb', line 5 def pattern @pattern end |
#time_format ⇒ Object
Returns the value of attribute time_format.
4 5 6 |
# File 'lib/chainsaw/format.rb', line 4 def time_format @time_format end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/chainsaw/format.rb', line 3 def type @type end |