Colection of shared methods between `Guard::Guard` (deprecated) and `Guard::Plugin`.
Returns the plugin's name (without "guard-").
@example Name for Guard::RSpec
> Guard::RSpec.new.name => "rspec"
@return [String]
# File lib/guard/plugin/base.rb, line 131 def name @name ||= self.class.non_namespaced_name end
Returns the plugin's class name without the Guard |
namespace. |
@example Title for Guard::RSpec
> Guard::RSpec.new.title => "RSpec"
@return [String]
# File lib/guard/plugin/base.rb, line 143 def title @title ||= self.class.non_namespaced_classname end
String representation of the plugin.
@example String representation of an instance of the Guard::RSpec plugin
Guard::RSpec.new.title #=> "#<Guard::RSpec @name=rspec @group=#<Guard::Group @name=default @options={}> @watchers=[] @callbacks=[] @options={all_after_pass: true}>"
@return [String] the string representation
# File lib/guard/plugin/base.rb, line 155 def to_s "#<#{self.class} @name=#{name} @group=#{group} @watchers=#{watchers} @callbacks=#{callbacks} @options=#{options}>" end
Generated with the Darkfish Rdoc Generator 2.