Module: Yarsh::InstanceMethods
- Included in:
- Shell
- Defined in:
- lib/yarsh/instance_methods.rb
Constant Summary collapse
- SEVERITIES =
%w[DEBUG INFO WARN ERROR FATAL UNKNOWN]
Instance Method Summary collapse
Instance Method Details
#configure(&block) ⇒ Object
15 16 17 |
# File 'lib/yarsh/instance_methods.rb', line 15 def configure(&block) block.call(Config.instance) end |
#sh_alias(new_name, command) ⇒ Object
7 8 9 |
# File 'lib/yarsh/instance_methods.rb', line 7 def sh_alias(new_name, command) Config.instance.add_alias(new_name, command) end |
#source(filename) ⇒ Object
11 12 13 |
# File 'lib/yarsh/instance_methods.rb', line 11 def source(filename) load(filename, Yarsh::InstanceMethods) end |