Sha256: bc57e1118daba3cfe33ee51f90de060f731fc4af42db995aea29cde44d7a39cc

Contents?: true

Size: 739 Bytes

Versions: 1

Compression:

Stored size: 739 Bytes

Contents

require 'yargi/predicate'

module Yargi
  
  # Current Yargi version
  VERSION = "0.1.0".freeze
  
  # When _what_ is not nil, converts it to a predicate (typically a module).
  # Otherwise, a block is expected, which is converted to a LambdaPredicate.
  # Otherwise, return ALL.
  def self.predicate(what=nil, &block)
    Predicate.to_predicate(what, &block)
  end
  
  # Predicates that always return true
  ALL = Yargi::Predicate.to_predicate(true)
  
  # Predicates that always return false
  NONE = Yargi::Predicate.to_predicate(false)
  
end

require 'yargi/markable'
require 'yargi/digraph'
require 'yargi/digraph_vertex'
require 'yargi/digraph_edge'
require 'yargi/element_set'
require 'yargi/vertex_set'
require 'yargi/edge_set'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yargi-0.1.0 lib/yargi.rb