Class: Pik::Ruby

Inherits:
Run show all
Defined in:
lib/pik/commands/run_command.rb

Instance Attribute Summary

Attributes inherited from Command

#config, #options, #output, #version

Instance Method Summary collapse

Methods inherited from Run

#args_required?, #check_args, #command_options, #echo_ruby_version, #execute, #parse_options, #switch_gem_home_to, #switch_path_to

Methods inherited from Command

#add_sigint_handler, aka, choose_from, clean_gem_batch, #close, #cmd_name, cmd_name, #command_options, #create, #current_gem_bin_path, #current_version?, #default_gem_home, #delete_old_pik_batches, description, #editors, #find_config_from_path, #get_version, hl, inherited, #initialize, it, names, #parse_options, summary

Constructor Details

This class inherits a constructor from Pik::Command

Instance Method Details

#command(cmd = Which::Ruby.exe.basename) ⇒ Object



93
94
95
# File 'lib/pik/commands/run_command.rb', line 93

def command(cmd=Which::Ruby.exe.basename)
  super(cmd)
end

#help_messageObject



97
98
99
100
101
102
103
104
105
106
# File 'lib/pik/commands/run_command.rb', line 97

def help_message
  sep =<<SEP
  Examples:

C:\\>pik ruby -v

C:\\>pik rb -e "puts 'Hello world!'"

SEP
end