Module: Monkey::Backend::Common::Parent

Defined in:
lib/monkey/backend/common/parent.rb

Instance Method Summary collapse

Instance Method Details

#parentObject


6
7
8
# File 'lib/monkey/backend/common/parent.rb', line 6

def parent
  name && name =~ /^(.+)::[^:]+$/ ? $1.constantize : Object
end