Class: Ellipses::Client::Command::Proto
- Inherits:
-
Struct
- Object
- Struct
- Ellipses::Client::Command::Proto
- Defined in:
- lib/ellipses/client/command.rb
Instance Attribute Summary collapse
-
#argc ⇒ Object
Returns the value of attribute argc.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#argc ⇒ Object
Returns the value of attribute argc
12 13 14 |
# File 'lib/ellipses/client/command.rb', line 12 def argc @argc end |
#klass ⇒ Object
Returns the value of attribute klass
12 13 14 |
# File 'lib/ellipses/client/command.rb', line 12 def klass @klass end |
#name ⇒ Object
Returns the value of attribute name
12 13 14 |
# File 'lib/ellipses/client/command.rb', line 12 def name @name end |
Instance Method Details
#valid?(argv) ⇒ Boolean
13 14 15 |
# File 'lib/ellipses/client/command.rb', line 13 def valid?(argv) argc.nil? || argc.cover?(argv.size) end |