Class: Semlogger::CustomType
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name, *obj) ⇒ CustomType
constructor
A new instance of CustomType.
- #to_semlogger ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(name, *obj) ⇒ CustomType
Returns a new instance of CustomType.
57 58 59 |
# File 'lib/semlogger.rb', line 57 def initialize name, *obj @name, @obj = name.to_s.to_sym, obj end |
Instance Method Details
#to_semlogger ⇒ Object
61 62 63 |
# File 'lib/semlogger.rb', line 61 def to_semlogger [@name] + @obj end |