class Yoda::Model::Types::ModuleType
Attributes
path[R]
@return [ScopedPath]
Public Class Methods
new(path)
click to toggle source
@param value [String, Path
, ScopedPath]
# File lib/yoda/model/types/module_type.rb, line 9 def initialize(path) @path = ScopedPath.build(path) end
Public Instance Methods
change_root(paths)
click to toggle source
@param paths [Array<Path>] @return [self]
# File lib/yoda/model/types/module_type.rb, line 25 def change_root(paths) self.class.new(path.change_scope(paths)) end
eql?(another)
click to toggle source
@param another [Object]
# File lib/yoda/model/types/module_type.rb, line 14 def eql?(another) another.is_a?(ModuleType) && path == another.path end
hash()
click to toggle source
# File lib/yoda/model/types/module_type.rb, line 19 def hash [self.class.name, path].hash end
resolve(registry)
click to toggle source
@param registry [Registry] @return [Array<YARD::CodeObjects::Base>]
# File lib/yoda/model/types/module_type.rb, line 31 def resolve(registry) [Store::Query::FindMetaClass.new(registry).find(path)].compact end
to_s()
click to toggle source
@return [String]
# File lib/yoda/model/types/module_type.rb, line 36 def to_s "#{path.path.to_s}.module" end