class Specific::Base

Attributes

base_path[R]

Public Class Methods

new(base_path) click to toggle source
# File lib/specific.rb, line 18
def initialize(base_path)
  @base_path = base_path
end

Public Instance Methods

add_feature(feature) click to toggle source
# File lib/specific.rb, line 22
def add_feature(feature)
  features << feature
end
features() click to toggle source
# File lib/specific.rb, line 26
def features
  @features ||= []
end
next_id() click to toggle source
# File lib/specific.rb, line 30
def next_id
  highest_id + 1
end

Private Instance Methods

highest_id() click to toggle source
# File lib/specific.rb, line 35
def highest_id
  features.map(&:id).max
end