class Yoda::Model::Types::DuckType

Attributes

method_name[R]

Public Class Methods

new(method_name) click to toggle source

@param method_name [String]

# File lib/yoda/model/types/duck_type.rb, line 8
def initialize(method_name)
  @method_name = method_name
end

Public Instance Methods

change_root(paths) click to toggle source

@param paths [Array<Paths>] @return [self]

# File lib/yoda/model/types/duck_type.rb, line 24
def change_root(paths)
  self
end
eql?(another) click to toggle source

@param another [Object]

# File lib/yoda/model/types/duck_type.rb, line 13
def eql?(another)
  another.is_a?(DuckType) &&
  method_name == another.method_name
end
hash() click to toggle source
# File lib/yoda/model/types/duck_type.rb, line 18
def hash
  [self.class.name, method_name].hash
end
resolve(registry) click to toggle source

@param registry [Registry] @return [Array<Store::Objects::Base>]

# File lib/yoda/model/types/duck_type.rb, line 30
def resolve(registry)
  []
end
to_s() click to toggle source

@return [String]

# File lib/yoda/model/types/duck_type.rb, line 35
def to_s
  "##{method_name}"
end