Class: Specific::Base
- Inherits:
-
Object
- Object
- Specific::Base
- Defined in:
- lib/specific.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
readonly
Returns the value of attribute base_path.
Instance Method Summary collapse
- #add_feature(feature) ⇒ Object
- #features ⇒ Object
-
#initialize(base_path) ⇒ Base
constructor
A new instance of Base.
- #next_id ⇒ Object
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_path ⇒ Object (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 |
#features ⇒ Object
26 27 28 |
# File 'lib/specific.rb', line 26 def features @features ||= [] end |
#next_id ⇒ Object
30 31 32 |
# File 'lib/specific.rb', line 30 def next_id highest_id + 1 end |