Class: UserInput::OptionParser::Info
- Defined in:
- lib/user_input/option_parser.rb,
lib/user_input/option_parser.rb
Instance Attribute Summary collapse
-
#default_value ⇒ Object
Returns the value of attribute default_value.
-
#description ⇒ Object
Returns the value of attribute description.
-
#flag ⇒ Object
Returns the value of attribute flag.
-
#long_name ⇒ Object
Returns the value of attribute long_name.
-
#short_name ⇒ Object
Returns the value of attribute short_name.
-
#validate ⇒ Object
Returns the value of attribute validate.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(short_name, long_name, description, flag, default_value, value, validate) ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize(short_name, long_name, description, flag, default_value, value, validate) ⇒ Info
Returns a new instance of Info.
11 12 13 14 |
# File 'lib/user_input/option_parser.rb', line 11 def initialize(short_name, long_name, description, flag, default_value, value, validate) @short_name, @long_name, @description, @flag, @default_value, @value, @validate = short_name, long_name, description, flag, default_value, value, validate end |
Instance Attribute Details
#default_value ⇒ Object
Returns the value of attribute default_value
8 9 10 |
# File 'lib/user_input/option_parser.rb', line 8 def default_value @default_value end |
#description ⇒ Object
Returns the value of attribute description
8 9 10 |
# File 'lib/user_input/option_parser.rb', line 8 def description @description end |
#flag ⇒ Object
Returns the value of attribute flag
8 9 10 |
# File 'lib/user_input/option_parser.rb', line 8 def flag @flag end |
#long_name ⇒ Object
Returns the value of attribute long_name
8 9 10 |
# File 'lib/user_input/option_parser.rb', line 8 def long_name @long_name end |
#short_name ⇒ Object
Returns the value of attribute short_name
8 9 10 |
# File 'lib/user_input/option_parser.rb', line 8 def short_name @short_name end |
#validate ⇒ Object
Returns the value of attribute validate
8 9 10 |
# File 'lib/user_input/option_parser.rb', line 8 def validate @validate end |
#value ⇒ Object
Returns the value of attribute value
8 9 10 |
# File 'lib/user_input/option_parser.rb', line 8 def value @value end |