Class: CLOptions::Flag
- Inherits:
-
Struct
- Object
- Struct
- CLOptions::Flag
- Defined in:
- lib/cloptions/switch.rb,
lib/cloptions/switch.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#switch ⇒ Object
Returns the value of attribute switch.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
10 11 12 |
# File 'lib/cloptions/switch.rb', line 10 def errors @errors end |
#parameters ⇒ Object
Returns the value of attribute parameters
10 11 12 |
# File 'lib/cloptions/switch.rb', line 10 def parameters @parameters end |
#switch ⇒ Object
Returns the value of attribute switch
10 11 12 |
# File 'lib/cloptions/switch.rb', line 10 def switch @switch end |
Instance Method Details
#inspect ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/cloptions/switch.rb', line 12 def inspect "#<%s:0x%x switch=#<CLOptions::Switch %s> parameters=%s errors=%s>" % [ self.class, object_id << 1, switch.to_s, parameters.inspect, errors.inspect ] end |