Module: Rounders::Plugins::Pluggable::ClassMethods
- Defined in:
- lib/rounders/plugins/pluggable.rb
Instance Method Summary collapse
- #directory_name ⇒ Object
- #feature_name ⇒ Object
- #load_path ⇒ Object
- #load_plugins ⇒ Object
- #symbol ⇒ Object
Instance Method Details
#directory_name ⇒ Object
21 22 23 |
# File 'lib/rounders/plugins/pluggable.rb', line 21 def directory_name @directory_name ||= Util.infrect(feature_name.split('_').first).pluralize end |
#feature_name ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/rounders/plugins/pluggable.rb', line 13 def feature_name @feature_name ||= begin name_spaces = name.to_s.split('::') class_name = name_spaces.last Rounders::Util.infrect(class_name).underscore end end |
#load_path ⇒ Object
29 30 31 |
# File 'lib/rounders/plugins/pluggable.rb', line 29 def load_path @load_path ||= File.join(Rounders::APP_PATH, directory_name) end |