In mongoid, a ORM mapped database object is like below. The part “type: String” seems to me to not fit into any standard ruby syntax and I was curious how does mongoid implement that ?
class Step include Mongoid::Document
field :Label, type: String field :Descript, type: String field :ErrorText, type: String
embedded_in :step_data
end