Class: Commandorobo::Arguments
- Inherits:
-
Object
- Object
- Commandorobo::Arguments
- Defined in:
- lib/commandorobo.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(raw) ⇒ Arguments
constructor
A new instance of Arguments.
- #noswitch ⇒ Object
- #switches ⇒ Object
Constructor Details
#initialize(raw) ⇒ Arguments
Returns a new instance of Arguments.
75 76 77 |
# File 'lib/commandorobo.rb', line 75 def initialize(raw) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
74 75 76 |
# File 'lib/commandorobo.rb', line 74 def raw @raw end |
Instance Method Details
#noswitch ⇒ Object
83 84 85 |
# File 'lib/commandorobo.rb', line 83 def noswitch Commandorobo::Utils::remove_switch(@raw.join(' ')) end |
#switches ⇒ Object
79 80 81 |
# File 'lib/commandorobo.rb', line 79 def switches Commandorobo::Utils::consume_switch(@raw.join(' ')) end |