Method: Attributor::Type::ClassMethods#describe_option

Defined in:
lib/attributor/type.rb

#describe_option(option_name, option_value) ⇒ Object



199
200
201
202
203
204
205
206
# File 'lib/attributor/type.rb', line 199

def describe_option( option_name, option_value )
  return case option_name
  when :description
    option_value
  else
    option_value  # By default, describing an option returns the hash with the specification
  end
end