Module: Her::Model::Introspection::ClassMethods
- Defined in:
- lib/her/model/introspection.rb
Instance Method Summary collapse
-
#nearby_class(name) ⇒ Object
Finds a class at the same level as this one or at the global level.
Instance Method Details
#nearby_class(name) ⇒ Object
Finds a class at the same level as this one or at the global level.
33 34 35 |
# File 'lib/her/model/introspection.rb', line 33 def nearby_class(name) sibling_class(name) || name.constantize rescue nil end |