Class: Kennel::Models::Project

Inherits:
Base
  • Object
show all
Defined in:
lib/kennel/models/project.rb

Constant Summary

Constants inherited from Base

Base::SETTING_OVERRIDABLE_METHODS

Constants included from SettingsAsMethods

SettingsAsMethods::SETTING_OVERRIDABLE_METHODS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#kennel_id, #name, #to_json

Methods included from SubclassTracking

#recursive_subclasses, #subclasses

Methods included from SettingsAsMethods

included, #initialize, #raise_with_location

Class Method Details

.file_locationObject



11
12
13
14
15
16
# 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

Instance Method Details

#validated_partsObject



18
19
20
21
22
# File 'lib/kennel/models/project.rb', line 18

def validated_parts
  all = parts
  validate_parts(all)
  all
end