Module: Matt::Support::Participant

Includes:
Puts
Included in:
Datasource, Exporter, Measure
Defined in:
lib/matt/support/participant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Puts

#debug, #info, #puts_err, #puts_out, #stderr, #stdout

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



7
8
9
# File 'lib/matt/support/participant.rb', line 7

def configuration
  @configuration
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/matt/support/participant.rb', line 6

def name
  @name
end

Instance Method Details

#class_nameObject



13
14
15
# File 'lib/matt/support/participant.rb', line 13

def class_name
  self.class.name.gsub /#<Class(.*?)>::/, ""
end

#fail!(message) ⇒ Object

Raises:



9
10
11
# File 'lib/matt/support/participant.rb', line 9

def fail!(message)
  raise UnexpectedError, message
end

#to_sObject



17
18
19
# File 'lib/matt/support/participant.rb', line 17

def to_s
  "#{class_name}(#{self.name})"
end