Module: Workflow::Specification::TaggedWith

Defined in:
lib/workflow/specification.rb

Instance Method Summary collapse

Instance Method Details

#not_tagged_with(*tags) ⇒ Object



152
153
154
155
# File 'lib/workflow/specification.rb', line 152

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

#tagged_with(*tags) ⇒ Object



147
148
149
150
# File 'lib/workflow/specification.rb', line 147

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