Class: Usable::Config
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Usable::Config
- Defined in:
- lib/usable/config.rb
Instance Method Summary collapse
Instance Method Details
#available_methods ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/usable/config.rb', line 7 def available_methods modules.each_with_object({}) do |mod, result| mod.instance_methods.each do |method_name| result[method_name] = mod.instance_method method_name end end end |
#modules ⇒ Object
3 4 5 |
# File 'lib/usable/config.rb', line 3 def modules @modules ||= [] end |