It's the new hash syntax introduced in ruby 1.9. On Oct 23, 2013 11:22 PM, "Jedrin" <jrubia...@gmail.com> wrote:
> > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/0e81b056-62c2-403b-aed1-a4e6892a4648%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BsTbyvy%2BJ-ZrD4UcJxkY2HJV_nA-7MC0Q4%3D2UUE7T4_%2B3AP-Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.