Module: YAMLCommand
- Defined in:
- lib/yaml_command.rb,
lib/yaml_command/get.rb,
lib/yaml_command/set.rb,
lib/yaml_command/base.rb,
lib/yaml_command/edit.rb,
lib/yaml_command/sort.rb,
lib/yaml_command/view.rb,
lib/yaml_command/slurp.rb,
lib/yaml_command/splat.rb
Defined Under Namespace
Modules: Console
Classes: Command
Class Method Summary
collapse
Class Method Details
.const_missing(name) ⇒ Object
34
35
36
|
# File 'lib/yaml_command.rb', line 34
def self.const_missing(name)
index[name.to_s.downcase] || super(name)
end
|
.index ⇒ Object
39
40
41
42
43
44
45
46
|
# File 'lib/yaml_command.rb', line 39
def self.index
@index ||= begin
file = File.dirname(__FILE__) + '/yaml_command.yml'
YAML.load_file(file)
rescue
{}
end
end
|