class Kennel::Models::Project

Public Class Methods

file_location() click to toggle source
# File lib/kennel/models/project.rb, line 11
def self.file_location
  @file_location ||= begin
    method_in_file = instance_methods(false).first
    instance_method(method_in_file).source_location.first.sub("#{Bundler.root}/", "")
  end
end

Public Instance Methods

validated_parts() click to toggle source
# File lib/kennel/models/project.rb, line 18
def validated_parts
  all = parts
  validate_parts(all)
  all
end

Private Instance Methods

validate_parts(parts) click to toggle source

hook for users to add custom validations via `prepend`

# File lib/kennel/models/project.rb, line 27
def validate_parts(parts)
end