Method: Integrity::Author.typecast
- Defined in:
- lib/integrity/author.rb
.typecast(value, property) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/integrity/author.rb', line 31 def self.typecast(value, property) case value when AuthorStruct then value when NilClass then load(nil, property) else load(value.to_s, property) end end |