module Guard::Plugin::Base::ClassMethods
def non_namespaced_classname
-
(String)-
Other tags:
- Example: Non-namespaced class name for Guard::RSpec -
def non_namespaced_classname self.to_s.sub('Guard::', '') end
def non_namespaced_name
-
(String)-
Other tags:
- Example: Non-namespaced name for Guard::RSpec -
def non_namespaced_name non_namespaced_classname.downcase end
def template(plugin_location)
-
plugin_location(String) -- the plugin location
def template(plugin_location) File.read("#{ plugin_location }/lib/guard/#{ non_namespaced_name }/templates/Guardfile") end