Class: Mycommands::ParamView

Inherits:
View
  • Object
show all
Defined in:
lib/mycommands/views/param_view.rb

Instance Method Summary collapse

Methods inherited from View

#add_default_routes, #header, #initialize, #print

Constructor Details

This class inherits a constructor from Mycommands::View

Instance Method Details

#showObject



3
4
5
6
7
# File 'lib/mycommands/views/param_view.rb', line 3

def show
  header :"Parameters for command" if @params.current_param_index == 0
  print "    #{@param}?".yellow
  @router.add_route(:match => '.|^', :controller => :Param, :action => :update, :input => @result)
end