lib/chef-api/validators/base.rb in chef-infra-api-0.10.0 vs lib/chef-api/validators/base.rb in chef-infra-api-0.10.2

- old
+ new

@@ -33,11 +33,11 @@ # FooValidator.new.key #=> :foo # # @return [Symbol] # def key - name = self.class.name.split('::').last + name = self.class.name.split("::").last Util.underscore(name).to_sym end # # Execute the validations. This is an abstract class and must be @@ -45,11 +45,11 @@ # # @param [Resource::Base::Base] resource # the parent resource to validate against # def validate(resource) - raise Error::AbstractMethod.new(method: 'Validators::Base#validate') + raise Error::AbstractMethod.new(method: "Validators::Base#validate") end # # The string representation of this validation. # @@ -74,9 +74,9 @@ # The class name for this validator. # # @return [String] # def classname - @classname ||= self.class.name.split('::')[1..-1].join('::') + @classname ||= self.class.name.split("::")[1..-1].join("::") end end end