Method: Modeling::ModelField.parse
- Defined in:
- lib/modeling/model_field.rb
.parse(argument, filter = nil) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/modeling/model_field.rb', line 40 def parse argument, filter = nil case argument when ModelField argument when Symbol, String parse_model_field argument else raise Exception.new "Unsupported argument #{argument} of #{argument.class} class." end end |