Class: Yoda::Model::Types::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/yoda/model/types/base.rb

Overview

This class is abstract.

Instance Method Summary collapse

Instance Method Details

#==(another) ⇒ Object



6
7
8
# File 'lib/yoda/model/types/base.rb', line 6

def ==(another)
  eql?(another)
end

#change_root(paths) ⇒ Base

This method is abstract.

Parameters:

  • paths (Array<Path>)

Returns:



13
14
15
# File 'lib/yoda/model/types/base.rb', line 13

def change_root(paths)
  fail NotImplementedError
end

#map {|_self| ... } ⇒ Base

Yields:

  • (_self)

Yield Parameters:

Returns:



31
32
33
# File 'lib/yoda/model/types/base.rb', line 31

def map
  yield self
end

#resolve(registry) ⇒ Array<Store::Objects::Base>

This method is abstract.

Parameters:

  • registry (Registry)

Returns:



20
21
22
# File 'lib/yoda/model/types/base.rb', line 20

def resolve(registry)
  fail NotImplementedError
end

#to_sString

This method is abstract.

Returns:

  • (String)


26
27
28
# File 'lib/yoda/model/types/base.rb', line 26

def to_s
  fail NotImplementedError
end