Module: Sapling::Memory::ClientAPI
- Included in:
- Sapling::Memory
- Defined in:
- lib/sapling/memory.rb
Instance Method Summary collapse
-
#active?(feature, options = {}) ⇒ Boolean
see Sapling::API::Client.
-
#active_features(options = {}) ⇒ Object
see Sapling::API::Client.
- #features ⇒ Object
Instance Method Details
#active?(feature, options = {}) ⇒ Boolean
see Sapling::API::Client
49 50 51 52 |
# File 'lib/sapling/memory.rb', line 49 def active?(feature, ={}) = Util.() (f = @features[feature]) && f.active?() end |
#active_features(options = {}) ⇒ Object
see Sapling::API::Client
59 60 61 |
# File 'lib/sapling/memory.rb', line 59 def active_features(={}) features.select {|feature| active?(feature,)} end |
#features ⇒ Object
54 55 56 |
# File 'lib/sapling/memory.rb', line 54 def features @features.keys.sort_by {|k| k.to_s} end |