Class: YARD::Handlers::Ruby::Mongoid::FieldHandler
- Inherits:
-
AttributeHandler
- Object
- AttributeHandler
- YARD::Handlers::Ruby::Mongoid::FieldHandler
- Includes:
- Extensions, Helpers
- Defined in:
- lib/yard/handlers/ruby/mongoid/field_handler.rb
Constant Summary collapse
- MONGOID_FIELDS =
'Fields'
Instance Method Summary collapse
Methods included from Helpers
Instance Method Details
#process ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/yard/handlers/ruby/mongoid/field_handler.rb', line 17 def process name = statement.parameters[0].last if name.type == :symbol name = name.source[1..-1] add_field_getter(effected_namespace, name, class_name, default_value) add_field_setter(effected_namespace, name, class_name) #register_field_presence(effected_namespace, name, scope) #register_field_change(effected_namespace, name, scope) #register_field_changed(effected_namespace, name, scope) #register_field_was(effected_namespace, name, scope) #register_field_reset(effected_namespace, name, scope) end end |