Class: Guard::Guardfile::Result
- Inherits:
-
Object
- Object
- Guard::Guardfile::Result
- Defined in:
- lib/guard/guardfile/result.rb
Overview
This class is responsible for storing the result of the Guardfile evaluation.
Instance Attribute Summary collapse
-
#clearing ⇒ Object
Returns the value of attribute clearing.
Instance Method Summary collapse
-
#directories ⇒ Array<String>
Store directories as an array:
['foo']
. -
#groups ⇒ Hash
Store groups as a hash:
{ frontend: {}, backend: {} }
. -
#ignore ⇒ Array<Regexp>
Store ignore regexps as an array:
[/foo/]
. -
#ignore_bang ⇒ Array<Regexp>
Store ignore! regexps as an array:
[/foo/]
. -
#interactor ⇒ Hash
Store interactor settings as a hash:
{ off: {} }
. -
#logger ⇒ Hash
Store logger settings as a hash:
{ off: {} }
. -
#notification ⇒ Hash
Store notification settings as a hash:
{ off: {} }
. - #plugin_names ⇒ Object
-
#plugins ⇒ Array<Hash>
Store plugins as an array of hashes:
[{ name: "", options: {} }]
. -
#scopes ⇒ Hash
Store scopes settings as a hash:
{ plugins: [:rspec] }
.
Instance Attribute Details
#clearing ⇒ Object
Returns the value of attribute clearing.
12 13 14 |
# File 'lib/guard/guardfile/result.rb', line 12 def clearing @clearing end |
Instance Method Details
#directories ⇒ Array<String>
Store directories as an array: ['foo']
.
86 87 88 |
# File 'lib/guard/guardfile/result.rb', line 86 def directories @directories ||= [] end |
#groups ⇒ Hash
Store groups as a hash: { frontend: {}, backend: {} }
.
38 39 40 |
# File 'lib/guard/guardfile/result.rb', line 38 def groups @groups ||= { Guard::Internals::Groups::DEFAULT_GROUP => {} } end |
#ignore ⇒ Array<Regexp>
Store ignore regexps as an array: [/foo/]
.
54 55 56 |
# File 'lib/guard/guardfile/result.rb', line 54 def ignore @ignore ||= [] end |
#ignore_bang ⇒ Array<Regexp>
Store ignore! regexps as an array: [/foo/]
.
62 63 64 |
# File 'lib/guard/guardfile/result.rb', line 62 def ignore_bang @ignore_bang ||= [] end |
#interactor ⇒ Hash
Store interactor settings as a hash: { off: {} }
.
30 31 32 |
# File 'lib/guard/guardfile/result.rb', line 30 def interactor @interactor ||= {} end |
#logger ⇒ Hash
Store logger settings as a hash: { off: {} }
.
70 71 72 |
# File 'lib/guard/guardfile/result.rb', line 70 def logger @logger ||= {} end |
#notification ⇒ Hash
Store notification settings as a hash: { off: {} }
.
22 23 24 |
# File 'lib/guard/guardfile/result.rb', line 22 def notification @notification ||= {} end |
#plugin_names ⇒ Object
14 15 16 |
# File 'lib/guard/guardfile/result.rb', line 14 def plugin_names plugins.map(&:first).map(&:to_sym) end |
#plugins ⇒ Array<Hash>
Store plugins as an array of hashes: [{ name: "", options: {} }]
.
46 47 48 |
# File 'lib/guard/guardfile/result.rb', line 46 def plugins @plugins ||= [] end |
#scopes ⇒ Hash
Store scopes settings as a hash: { plugins: [:rspec] }
.
78 79 80 |
# File 'lib/guard/guardfile/result.rb', line 78 def scopes @scopes ||= {} end |