Class: Micro::Struct::Features::Config
- Inherits:
-
Struct
- Object
- Struct
- Micro::Struct::Features::Config
- Defined in:
- lib/micro/struct/features.rb
Instance Attribute Summary collapse
-
#names ⇒ Object
Returns the value of attribute names.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#names ⇒ Object
Returns the value of attribute names
30 31 32 |
# File 'lib/micro/struct/features.rb', line 30 def names @names end |
#options ⇒ Object
Returns the value of attribute options
30 31 32 |
# File 'lib/micro/struct/features.rb', line 30 def @options end |
Instance Method Details
#option?(name) ⇒ Boolean
31 32 33 |
# File 'lib/micro/struct/features.rb', line 31 def option?(name) .fetch(name) end |
#options?(*names) ⇒ Boolean
35 36 37 |
# File 'lib/micro/struct/features.rb', line 35 def (*names) names.all? { |name| option?(name) } end |