Sha256: 896b5f5fc8cf8d84959922f4529e3c592ba3982b51f7a1c2f56e0b42abd89485
Contents?: true
Size: 438 Bytes
Versions: 13
Compression:
Stored size: 438 Bytes
Contents
module Serverspec module Type class Base def initialize(name=nil) @name = name @runner = Specinfra::Runner.instance end def to_s type = self.class.name.split(':')[-1] type.gsub!(/([a-z\d])([A-Z])/, '\1 \2') type.capitalize! %Q!#{type} "#{@name}"! end alias_method :inspect, :to_s def to_ary to_s.split(" ") end end end end
Version data entries
13 entries across 13 versions & 1 rubygems