Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.421 kb
require 'options'
module Dependable
RESERVED_TAGS = [:build, :optional, :recommended, :run]
def build?
tags.include? :build
end
def optional?
tags.include? :optional
end
def recommended?
tags.include? :recommended
end
def run?
tags.include? :run
end
def required?
!build? && !optional? && !recommended?
end
def options
Options.create(tags - RESERVED_TAGS)
end
end
Jump to Line
Something went wrong with that request. Please try again.