Class: Parlour::DetachedRbiGenerator

Inherits:
RbiGenerator show all
Defined in:
lib/parlour/detached_rbi_generator.rb

Constant Summary

Constants inherited from RbiGenerator

RbiGenerator::Options

Instance Attribute Summary

Attributes inherited from RbiGenerator

#root

Instance Method Summary collapse

Methods inherited from RbiGenerator

#initialize

Methods inherited from Generator

#initialize

Constructor Details

This class inherits a constructor from Parlour::RbiGenerator

Instance Method Details

#current_pluginObject



16
17
18
# File 'lib/parlour/detached_rbi_generator.rb', line 16

def current_plugin
  nil
end

#detached!Object



6
7
8
# File 'lib/parlour/detached_rbi_generator.rb', line 6

def detached!
  raise "cannot call methods on a detached RBI generator"
end

#optionsObject



11
12
13
# File 'lib/parlour/detached_rbi_generator.rb', line 11

def options
  detached!
end

#rbi(strictness = 'strong') ⇒ Object



21
22
23
# File 'lib/parlour/detached_rbi_generator.rb', line 21

def rbi(strictness = 'strong')
  detached!
end