Class: Confetti::Config::Feature
- Inherits:
-
Struct
- Object
- Struct
- Confetti::Config::Feature
- Defined in:
- lib/confetti/config/classes.rb,
lib/confetti/config/feature.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#param_set ⇒ Object
readonly
Returns the value of attribute param_set.
-
#required ⇒ Object
Returns the value of attribute required.
Instance Method Summary collapse
- #defined_attrs ⇒ Object
-
#initialize(name, src) ⇒ Feature
constructor
A new instance of Feature.
Constructor Details
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
55 56 57 |
# File 'lib/confetti/config/classes.rb', line 55 def name @name end |
#param_set ⇒ Object (readonly)
Returns the value of attribute param_set.
4 5 6 |
# File 'lib/confetti/config/feature.rb', line 4 def param_set @param_set end |
#required ⇒ Object
Returns the value of attribute required
55 56 57 |
# File 'lib/confetti/config/classes.rb', line 55 def required @required end |
Instance Method Details
#defined_attrs ⇒ Object
56 57 58 59 60 61 |
# File 'lib/confetti/config/classes.rb', line 56 def defined_attrs { "name" => self[ :name ], "required" => self[ :required ] } end |