Method: Configspec::Type::Base#to_s

Defined in:
lib/configspec/type/base.rb

#to_sObject Also known as: inspect



8
9
10
11
12
13
# File 'lib/configspec/type/base.rb', line 8

def to_s
  type = self.class.name.split(':')[-1]
  type.gsub!(/([a-z\d])([A-Z])/, '\1 \2')
  type.capitalize!
  %Q!#{type} "#{@name}"!
end