Class: Highlander::Dsl::Parameter

Inherits:
DslBase
  • Object
show all
Defined in:
lib/highlander.dsl.params.rb

Direct Known Subclasses

ComponentParam, MappingParam, OutputParam, StackParam

Instance Attribute Summary collapse

Attributes inherited from DslBase

#config

Instance Method Summary collapse

Methods inherited from DslBase

#method_missing

Constructor Details

#initialize(name, type, defaultValue, noEcho = false) ⇒ Parameter

Returns a new instance of Parameter.



55
56
57
58
59
60
# File 'lib/highlander.dsl.params.rb', line 55

def initialize(name, type, defaultValue, noEcho = false)
  @no_echo = noEcho
  @name = name
  @type = type
  @default_value = defaultValue
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Highlander::Dsl::DslBase

Instance Attribute Details

#default_value ⇒ Object

Returns the value of attribute default_value.



53
54
55
# File 'lib/highlander.dsl.params.rb', line 53

def default_value
  @default_value
end

#name ⇒ Object

Returns the value of attribute name.



53
54
55
# File 'lib/highlander.dsl.params.rb', line 53

def name
  @name
end

#no_echo ⇒ Object

Returns the value of attribute no_echo.



53
54
55
# File 'lib/highlander.dsl.params.rb', line 53

def no_echo
  @no_echo
end

#type ⇒ Object

Returns the value of attribute type.



53
54
55
# File 'lib/highlander.dsl.params.rb', line 53

def type
  @type
end