class Mysh::RubyInfoCommand
Get info on the ruby environment.
Public Instance Methods
process_command(_input)
click to toggle source
Execute the @ruby shell command.
# File lib/mysh/show/ruby.rb, line 10 def process_command(_input) puts "Key ruby environment information.", "" puts info.format_output_bullets, "", path.format_output_bullets, "" end
Private Instance Methods
info()
click to toggle source
Get the info Endemic Code Smells :reek:UtilityFunction
# File lib/mysh/show/ruby.rb, line 20 def info [["location", RbConfig.ruby.to_host_spec], ["description", RUBY_DESCRIPTION], ["version", RUBY_VERSION], ["jversion", (JRUBY_VERSION rescue nil)], ["patch", RUBY_PATCHLEVEL], ["revision", RUBY_REVISION], ["date", RUBY_RELEASE_DATE], ["platform", RUBY_PLATFORM], ["copyright", RUBY_COPYRIGHT], ["engine", RUBY_ENGINE], ["host", RbConfig::CONFIG['host']], ["host cpu", RbConfig::CONFIG['host_cpu']], ["host os", RbConfig::CONFIG['host_os']], ["host vendor", RbConfig::CONFIG['host_vendor']] ] end
path()
click to toggle source
Get the path. Endemic Code Smells :reek:UtilityFunction
# File lib/mysh/show/ruby.rb, line 40 def path [["$:"].concat($:)] end