rabbitt-configurator 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- 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