lib/rdf/microdata/expansion.rb in rdf-microdata-2.2.3 vs lib/rdf/microdata/expansion.rb in rdf-microdata-3.1.0

- old
+ new

@@ -24,11 +24,10 @@ # @see [OWL2 PROFILES][] def expand repo = RDF::Repository.new repo << self # Add default graph - count = repo.count log_debug("expand") {"Loaded #{repo.size} triples into default graph"} repo = owl_entailment(repo) # Return graph with default graph @@ -36,11 +35,11 @@ repo.statements.each {|st| graph << st} graph end def rule(name, &block) - Rule.new(name, @options, block) + Rule.new(name, **@options, &block) end ## # An entailment rule # @@ -70,10 +69,10 @@ # end # # r.execute(queryable) {|statement| puts statement.inspect} # # @param [String] name - def initialize(name, options = {}, &block) + def initialize(name, **options, &block) @antecedents = [] @consequents = [] @options = options.dup @name = name