Class: Semlogger::CustomType

Inherits:
Base show all
Defined in:
lib/semlogger.rb

Instance Attribute Summary

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods inherited from Base

#add

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_semloggerObject



61
62
63
# File 'lib/semlogger.rb', line 61

def to_semlogger
	[@name] + @obj
end