Method: Jinx::Dependency#owner_type

Defined in:
lib/jinx/metadata/dependency.rb

#owner_typeClass?

Returns the sole owner type of this class, or nil if there is not exactly one owner.

Returns:

  • (Class, nil)

    the sole owner type of this class, or nil if there is not exactly one owner



129
130
131
132
# File 'lib/jinx/metadata/dependency.rb', line 129

def owner_type
  prop = owner_property || return
  prop.type
end