# File lib/kafo_wizards/entries/abstract.rb, line 6 def initialize(name, options={}) @name = name @value = @default_value = options.fetch(:default_value, nil) @label = options.fetch(:label, @name.to_s.gsub('_', ' ').capitalize) @description = options.fetch(:description, '') @validators = options.fetch(:validators, []) @required = !!options.fetch(:required, false) @parent = options.fetch(:parent, nil) @post_hook = options.fetch(:post_hook, nil) @pre_hook = options.fetch(:pre_hook, nil) end