Module: Babushka::AcceptsValueFor::ClassMethods

Defined in:
lib/babushka/accepts_value_for.rb

Instance Method Summary collapse

Instance Method Details

#accepts_value_for(method_name, *args) ⇒ Object



8
9
10
11
# File 'lib/babushka/accepts_value_for.rb', line 8

def accepts_value_for method_name, *args
  opts = args.extract_options!
  accepts_list_for method_name, *args.push(opts.merge(:type => 'value'))
end