lib/rdf/vocab/extensions.rb in rdf-vocab-3.2.4 vs lib/rdf/vocab/extensions.rb in rdf-vocab-3.2.5

- old
+ new

@@ -389,10 +389,10 @@ # Template invoked with expanded JSON-LD with outer object including `rdfs_classes`, `rdfs_properties`, and `rdf_instances` sections. case template when /.haml$/ require 'haml' - haml = if Haml.const_defined?(:Template) + haml = if Haml::VERSION >= "6" Haml::Template.new {File.read(template)} else Haml::Engine.new(File.read(template)) end