Top Level Namespace
Defined Under Namespace
Modules: Rubysh
Instance Method Summary collapse
- #AliasRubysh(name) ⇒ Object
-
#Rubysh(*args, &blk) ⇒ Object
You can then create a new Rubysh command:.
Instance Method Details
#AliasRubysh(name) ⇒ Object
73 74 75 76 77 |
# File 'lib/rubysh.rb', line 73 def AliasRubysh(name) = class << self; self; end .send(:alias_method, name, :Rubysh) Object.const_set(name, Rubysh) end |