Class: Opt
- Inherits:
-
Object
- Object
- Opt
- Defined in:
- lib/cmdline_parser.rb
Instance Attribute Summary collapse
-
#activated ⇒ Object
Returns the value of attribute activated.
-
#default ⇒ Object
Returns the value of attribute default.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#has_value ⇒ Object
Returns the value of attribute has_value.
-
#long ⇒ Object
Returns the value of attribute long.
-
#mandatory ⇒ Object
Returns the value of attribute mandatory.
-
#name ⇒ Object
Returns the value of attribute name.
-
#short ⇒ Object
Returns the value of attribute short.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize ⇒ Opt
constructor
A new instance of Opt.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Opt
Returns a new instance of Opt.
177 178 179 180 181 |
# File 'lib/cmdline_parser.rb', line 177 def initialize @mandatory = false @has_value = false @activated = false end |
Instance Attribute Details
#activated ⇒ Object
Returns the value of attribute activated.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def activated @activated end |
#default ⇒ Object
Returns the value of attribute default.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def default @default end |
#desc ⇒ Object
Returns the value of attribute desc.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def desc @desc end |
#has_value ⇒ Object
Returns the value of attribute has_value.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def has_value @has_value end |
#long ⇒ Object
Returns the value of attribute long.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def long @long end |
#mandatory ⇒ Object
Returns the value of attribute mandatory.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def mandatory @mandatory end |
#name ⇒ Object
Returns the value of attribute name.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def name @name end |
#short ⇒ Object
Returns the value of attribute short.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def short @short end |
#value ⇒ Object
Returns the value of attribute value.
176 177 178 |
# File 'lib/cmdline_parser.rb', line 176 def value @value end |
Instance Method Details
#to_s ⇒ Object
183 184 185 |
# File 'lib/cmdline_parser.rb', line 183 def to_s value end |