lib/bluepine/attributes/object_attribute.rb
def method_missing(type, name = nil, options = {}, &block)
        if Attributes.registry.key?(type)
          @attributes[name] = Attributes.create(type, name, options, &block)
        else
          super
        end
      end
# Shortcut for creating attribute (delegate call to Registry.create)
# This allows us to access newly registered attributes
#
#   string :username (or array, number etc)
Shortcut for creating attribute (delegate call to Registry.create)
This allows us to access newly registered attributes

string :username (or array, number etc)
Shortcut for creating attribute ( delegate call to Registry . create ) This allows us to access newly registered attributes string : username ( or array number etc )
def method_missing(type, name = nil, options = {}, &block)
        if Attributes.registry.key?(type)
          @attributes[name] = Attributes.create(type, name, options, &block)
        else
          super
        end
      end
def method_missing ( type , name = nil , options = { } , & block ) if Attributes . registry . key? ( type ) @attributes [ name ] = Attributes . create ( type , name , options , & block ) else super end end
Shortcut for creating attribute (delegate call to Registry.create)
This allows us to access newly registered attributes
Shortcut for creating attribute ( delegate call to Registry . create ) This allows us to access newly registered attributes
type
name
options
block