Module: Workflow::Specification::TaggedWith

Defined in:
lib/workflow/specification.rb

Instance Method Summary collapse

Instance Method Details

#not_tagged_with(*tags) ⇒ Object



162
163
164
165
# File 'lib/workflow/specification.rb', line 162

def not_tagged_with(*tags)
  tags = [tags].flatten
  reject { |item| (item.tags & tags).any? }
end

#tagged_with(*tags) ⇒ Object



157
158
159
160
# File 'lib/workflow/specification.rb', line 157

def tagged_with(*tags)
  tags = [tags].flatten
  select { |item| (item.tags & tags).any? }
end