class Ddr::Index::FieldAttribute
Public Class Methods
coerce(value)
click to toggle source
# File lib/ddr/index/field_attribute.rb, line 6 def self.coerce(value) case value when Field value when String Field.new(value) when Symbol Fields.get(value) end end
Public Instance Methods
coerce(value)
click to toggle source
# File lib/ddr/index/field_attribute.rb, line 17 def coerce(value) self.class.coerce(value) end