Skip to content

Commit

Permalink
Implemented the RDF::Literal.new(*args, :canonicalize => true) constr…
Browse files Browse the repository at this point in the history
…uctor option (kudos to Gregg Kellogg for the suggestion).
  • Loading branch information
artob committed Jun 25, 2010
1 parent e6c8fe1 commit bebca14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rdf/model/literal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def self.new(value, options = {})
end
literal = klass.allocate
literal.send(:initialize, value, options)
literal.canonicalize if options[:canonicalize]
literal
end

Expand Down

0 comments on commit bebca14

Please sign in to comment.