Class: Cue::Command::Show
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ Show
constructor
A new instance of Show.
- #nargs ⇒ Object
Methods inherited from Base
#find_item, #find_key, #parser
Constructor Details
#initialize(args) ⇒ Show
Returns a new instance of Show.
6 7 8 9 |
# File 'lib/cue/command/show.rb', line 6 def initialize(args) super(args) @sha = @args.first end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 |
# File 'lib/cue/command/show.rb', line 11 def execute item = find_item(@sha) puts item end |
#nargs ⇒ Object
16 17 18 |
# File 'lib/cue/command/show.rb', line 16 def nargs 1 end |