lib/confuse/config_item.rb in confuse-0.1.4 vs lib/confuse/config_item.rb in confuse-0.1.5
- old
+ new
@@ -2,9 +2,10 @@
# A {ConfigItem} is a class for storing a single piece of config. It has a
# key, a type, a description, and a default value.
class ConfigItem
attr_reader :key
attr_writer :value
+ attr_reader :default_value
def initialize(name, &block)
@key = name
instance_eval(&block) unless block.nil?
end