Class: Raz::Items::Group
- Inherits:
-
Object
- Object
- Raz::Items::Group
- Defined in:
- lib/raz/items/group.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #ignored_paths ⇒ Array<String> readonly
- #name ⇒ String readonly
- #paths ⇒ Array<String> readonly
Instance Method Summary collapse
- #ignore_path(path) ⇒ Object
-
#initialize(name, &block) ⇒ Group
constructor
A new instance of Group.
- #path(path) ⇒ Object
Constructor Details
#initialize(name, &block) ⇒ Group
Returns a new instance of Group.
20 21 22 23 24 25 26 |
# File 'lib/raz/items/group.rb', line 20 def initialize(name, &block) @name = name @paths = [] @ignored_paths = [] instance_eval(&block) unless block.nil? end |
Instance Attribute Details
#ignored_paths ⇒ Array<String> (readonly)
15 16 17 |
# File 'lib/raz/items/group.rb', line 15 def ignored_paths @ignored_paths end |
#name ⇒ String (readonly)
7 8 9 |
# File 'lib/raz/items/group.rb', line 7 def name @name end |
#paths ⇒ Array<String> (readonly)
11 12 13 |
# File 'lib/raz/items/group.rb', line 11 def paths @paths end |
Instance Method Details
#ignore_path(path) ⇒ Object
38 39 40 |
# File 'lib/raz/items/group.rb', line 38 def ignore_path(path) @ignored_paths << path end |
#path(path) ⇒ Object
32 33 34 |
# File 'lib/raz/items/group.rb', line 32 def path(path) @paths << path end |