class Configspec::Type::Base

Public Class Methods

new(name=nil) click to toggle source
# File lib/configspec/type/base.rb, line 4
def initialize(name=nil)
  @name = name
end

Public Instance Methods

inspect()
Alias for: to_s
to_s() click to toggle source
# 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
Also aliased as: inspect