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
21 22 23 |
# File 'lib/micro/struct/features.rb', line 21 def names @names end |
#options ⇒ Object
Returns the value of attribute options
21 22 23 |
# File 'lib/micro/struct/features.rb', line 21 def @options end |
Instance Method Details
#option?(name) ⇒ Boolean
22 23 24 |
# File 'lib/micro/struct/features.rb', line 22 def option?(name) .fetch(name) end |
#options?(*names) ⇒ Boolean
26 27 28 |
# File 'lib/micro/struct/features.rb', line 26 def (*names) names.all? { |name| option?(name) } end |