Class: RbsMacros::Macro

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

Overview

Base class for macro implementations. Macros react to method invocations in Ruby code (usually in module/class bodies) and generate RBS declarations for them.

Instance Method Summary collapse

Instance Method Details

#setup(env) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument

Raises:

  • (NoMethodError)


8
9
10
# File 'lib/rbs_macros/macro.rb', line 8

def setup(env) # rubocop:disable Lint/UnusedMethodArgument
  raise NoMethodError, "Not implemented: #{self.class}#setup"
end