Class: RbsMacros::AbstractProject

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs_macros/project.rb

Overview

Refers to the filesystem RbsMacros operates on.

Direct Known Subclasses

FakeProject, Project

Instance Method Summary collapse

Instance Method Details

#glob(ext:, include:, exclude:, &block) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument

Raises:

  • (NoMethodError)


10
11
12
13
14
15
16
17
# File 'lib/rbs_macros/project.rb', line 10

def glob(
  ext:,
  include:,
  exclude:,
  &block
)
  raise NoMethodError, "Not implemented: #{self.class}#each_rbs"
end

#read(path) ⇒ Object

Raises:

  • (NoMethodError)


23
24
25
# File 'lib/rbs_macros/project.rb', line 23

def read(path)
  raise NoMethodError, "Not implemented: #{self.class}#read"
end

#write(path, content) ⇒ Object

Raises:

  • (NoMethodError)


19
20
21
# File 'lib/rbs_macros/project.rb', line 19

def write(path, content)
  raise NoMethodError, "Not implemented: #{self.class}#write"
end