Class: Specific::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/specific.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_path) ⇒ Base

Returns a new instance of Base.



18
19
20
# File 'lib/specific.rb', line 18

def initialize(base_path)
  @base_path = base_path
end

Instance Attribute Details

#base_pathObject (readonly)

Returns the value of attribute base_path.



16
17
18
# File 'lib/specific.rb', line 16

def base_path
  @base_path
end

Instance Method Details

#add_feature(feature) ⇒ Object



22
23
24
# File 'lib/specific.rb', line 22

def add_feature(feature)
  features << feature
end

#featuresObject



26
27
28
# File 'lib/specific.rb', line 26

def features
  @features ||= []
end

#next_idObject



30
31
32
# File 'lib/specific.rb', line 30

def next_id
  highest_id + 1
end