Class: FuncBot::Functions::List
- Inherits:
-
Object
- Object
- FuncBot::Functions::List
- Defined in:
- lib/func_bot/functions/list.rb
Class Method Summary collapse
Class Method Details
.call ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/func_bot/functions/list.rb', line 6 def self.call if File.exist?(Rails.root.join("app", "lib", "func_bot", "functions", "list.yml")) YAML.load_file(Rails.root.join("app", "lib", "func_bot", "functions", "list.yml"))["functions"] else raise "app/lib/func_bot/functions/list.yml file not found. Please create it by running rails func_bot:install." end end |