Class: SetupConfiguration::Legacy::Parameter
- Inherits:
-
Parameter
- Object
- Parameter
- SetupConfiguration::Legacy::Parameter
show all
- Defined in:
- lib/setup_configuration/legacy/parameter.rb
Instance Attribute Summary
Attributes inherited from Parameter
#dependency, #key, #machine_type, #number
Instance Method Summary
collapse
Methods inherited from Parameter
#<=>, #depends_on, #for_machine_type
Constructor Details
#initialize(number) ⇒ Parameter
Returns a new instance of Parameter.
6
7
8
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 6
def initialize(number)
@number=number
end
|
Instance Method Details
#dep? ⇒ Boolean
14
15
16
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 14
def dep?
@dependency != :none
end
|
#extended? ⇒ Boolean
10
11
12
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 10
def extended?
dep? || type?
end
|
#param? ⇒ Boolean
22
23
24
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 22
def param?
true
end
|
#type? ⇒ Boolean
18
19
20
|
# File 'lib/setup_configuration/legacy/parameter.rb', line 18
def type?
@machine_type != 0
end
|