lib/tap/support/configurable_class.rb in bahuvrihi-tap-0.10.4 vs lib/tap/support/configurable_class.rb in bahuvrihi-tap-0.10.5
- old
+ new
@@ -1,8 +1,9 @@
require 'tap/support/class_configuration'
require 'tap/support/validation'
require 'tap/support/lazy_attributes'
+require 'tap/support/lazydoc/config'
module Tap
module Support
autoload(:Templater, 'tap/support/templater')
@@ -249,11 +250,11 @@
# register with Lazydoc so that all extra documentation can be extracted
caller.each do |line|
case line
when /in .config.$/ then next
when Lazydoc::CALLER_REGEXP
- options[:desc] = Lazydoc.register($1, $3.to_i - 1)
+ options[:desc] = Lazydoc.register($1, $3.to_i - 1, Lazydoc::Config)
break
end
end if options[:desc] == nil
configurations.add(key, value, options)
@@ -286,8 +287,9 @@
when Validation::ARRAY then "'[a, b, c]'"
when Validation::HASH then "'{one: 1, two: 2}'"
else nil
end
end
+
end
end
end
\ No newline at end of file