rabbitt-configurator 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/configurator/option.rb +5 -0
- data/lib/configurator/section.rb +4 -0
- data/lib/configurator/version.rb +1 -1
- metadata +1 -1
data/lib/configurator/option.rb
CHANGED
@@ -48,6 +48,11 @@ module Configurator
|
|
48
48
|
}
|
49
49
|
end
|
50
50
|
|
51
|
+
def inspect
|
52
|
+
_type = type.is_a?(Array) ? "Collection::#{type.first.to_s.capitalize}" : type.to_s.capitalize
|
53
|
+
"<Option::#{_type} @name=#{name} @required=#{required.inspect} @default=#{default.inspect} @value=#{value.inspect}>"
|
54
|
+
end
|
55
|
+
|
51
56
|
def compute_type(type)
|
52
57
|
case type
|
53
58
|
when UNDEFINED_OPTION then :any
|
data/lib/configurator/section.rb
CHANGED
data/lib/configurator/version.rb
CHANGED