Class: Highlander::Dsl::Parameter
- Defined in:
- lib/highlander.dsl.params.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#default_value ⇒ Object
Returns the value of attribute default_value.
-
#name ⇒ Object
Returns the value of attribute name.
-
#no_echo ⇒ Object
Returns the value of attribute no_echo.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from DslBase
Instance Method Summary collapse
-
#initialize(name, type, defaultValue, noEcho = false) ⇒ Parameter
constructor
A new instance of Parameter.
Methods inherited from DslBase
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 |