class RBT::BinaryNameBelongsToWhichProgram
Public Class Methods
[](i = ARGV)
click to toggle source
new( commandline_arguments = nil, run_already = true )
click to toggle source
Public Instance Methods
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/binary_name_belongs_to_which_program.rb, line 52 def run first = first_argument? all_registered_binaries = RBT.hash_registered_binaries? if all_registered_binaries.has_key? first belongs_to = all_registered_binaries[first] opne "The binary called `#{royalblue(first)}` belongs to" opne "the program `#{orange(belongs_to)}`." else opne "The program called `#{royalblue(first)}` does not appear "\ "to be registered " opne 'with any particular program.' end end