lib/build/dependency/provider.rb in build-dependency-1.3.0 vs lib/build/dependency/provider.rb in build-dependency-1.4.0

- old
+ new

@@ -16,11 +16,11 @@ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -require 'set' +require_relative 'set' module Build module Dependency def self.included(klass) klass.include(Provider) @@ -100,12 +100,16 @@ else "depends on #{name.inspect}" end end + def public? + !!@options[:public] + end + def private? - @options[:private] + !!@options[:private] end def alias? name.is_a?(Symbol) end @@ -142,10 +146,10 @@ # @return Hash<String, Provision> a table of named provisions. def provisions @provisions ||= {} end - # @return Set<Dependency> + # @return [IdentitySet<Dependency>] def dependencies @dependencies ||= Set.new end def filter(dependency)