Class: Ulla::EnvironmentFeature
- Inherits:
-
Object
- Object
- Ulla::EnvironmentFeature
- Defined in:
- lib/ulla/environment_feature.rb
Instance Attribute Summary collapse
-
#constrained ⇒ Object
Returns the value of attribute constrained.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#name ⇒ Object
Returns the value of attribute name.
-
#silent ⇒ Object
Returns the value of attribute silent.
-
#symbols ⇒ Object
Returns the value of attribute symbols.
Instance Method Summary collapse
- #constrained? ⇒ Boolean
-
#initialize(name, symbols, labels, constrained, silent) ⇒ EnvironmentFeature
constructor
A new instance of EnvironmentFeature.
- #silent? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(name, symbols, labels, constrained, silent) ⇒ EnvironmentFeature
6 7 8 9 10 11 12 |
# File 'lib/ulla/environment_feature.rb', line 6 def initialize(name, symbols, labels, constrained, silent) @name = name @symbols = symbols @labels = labels @constrained = constrained @silent = silent end |
Instance Attribute Details
#constrained ⇒ Object
Returns the value of attribute constrained.
4 5 6 |
# File 'lib/ulla/environment_feature.rb', line 4 def constrained @constrained end |
#labels ⇒ Object
Returns the value of attribute labels.
4 5 6 |
# File 'lib/ulla/environment_feature.rb', line 4 def labels @labels end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/ulla/environment_feature.rb', line 4 def name @name end |
#silent ⇒ Object
Returns the value of attribute silent.
4 5 6 |
# File 'lib/ulla/environment_feature.rb', line 4 def silent @silent end |
#symbols ⇒ Object
Returns the value of attribute symbols.
4 5 6 |
# File 'lib/ulla/environment_feature.rb', line 4 def symbols @symbols end |
Instance Method Details
#constrained? ⇒ Boolean
18 19 20 |
# File 'lib/ulla/environment_feature.rb', line 18 def constrained? constrained == "T" end |
#silent? ⇒ Boolean
22 23 24 |
# File 'lib/ulla/environment_feature.rb', line 22 def silent? silent == "T" end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/ulla/environment_feature.rb', line 14 def to_s [name, symbols.join, labels.join, constrained, silent].join(";") end |