lib/qipowl/core/ruler.rb in qipowl-0.9.1 vs lib/qipowl/core/ruler.rb in qipowl-0.9.2
- old
+ new
@@ -1,7 +1,8 @@
# encoding: utf-8
+require_relative "../constants"
require_relative '../utils/logging'
# @author Alexei Matyushkin
module Qipowl
@@ -73,10 +74,10 @@
return v
}
nil
end
}
- %w(block alone magnet grip regular).each { |section|
+ Qipowl::ENTITIES.each { |section|
next unless mapper.entities && mapper.entities[section.to_sym]
clazz.const_set("#{section.upcase}_TAGS", mapper.entities[section.to_sym])
clazz.class_eval %Q{
self::TAGS.rmerge! self::#{section.upcase}_TAGS
def ∃_#{section} entity