Class: Pik::Ruby

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

Direct Known Subclasses

Benchmark

Instance Attribute Summary

Attributes inherited from Command

#config, #debug, #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

#actual_gem_home, #add_sigint_handler, aka, choose_from, #close, cmd_name, #cmd_name, #command_options, #create, #current_gem_bin_path, #current_version?, #default_gem_home, #delete_old_pik_script, description, #editors, #find_config_from_path, #gem_path, #get_version, hl, inherited, #initialize, it, names, #parse_options, #pik_version, #sh, summary

Constructor Details

This class inherits a constructor from Pik::Command

Instance Method Details

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



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

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

#help_messageObject



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

def help_message
  sep =<<SEP
  Examples:

C:\\>pik ruby -v

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

SEP
end