class Raz::Items::Group

Attributes

ignored_paths[R]

@return [Array<String>]

name[R]

@return [String]

paths[R]

@return [Array<String>]

Public Class Methods

new(name, &block) click to toggle source

@param name [String] name of this group @param block [Proc] block where is specified all paths

# File lib/raz/items/group.rb, line 20
def initialize(name, &block)
  @name = name
  @paths = []
  @ignored_paths = []

  instance_eval(&block) unless block.nil?
end

Public Instance Methods

ignore_path(path) click to toggle source

@param path [String] path to file

# File lib/raz/items/group.rb, line 38
def ignore_path(path)
  @ignored_paths << path
end
path(path) click to toggle source

@param path [String] path to file

# File lib/raz/items/group.rb, line 32
def path(path)
  @paths << path
end