Class: Parlour::Generator
- Inherits:
-
Object
- Object
- Parlour::Generator
- Extended by:
- T::Sig
- Defined in:
- lib/parlour/generator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#current_plugin ⇒ Plugin?
The plugin which is currently generating new definitions.
-
#options ⇒ Options
readonly
The formatting options for this generator.
Instance Method Summary collapse
-
#initialize(break_params: 4, tab_size: 2, sort_namespaces: false) ⇒ void
constructor
Creates a new generator.
Constructor Details
#initialize(break_params: 4, tab_size: 2, sort_namespaces: false) ⇒ void
Creates a new generator.
15 16 17 18 19 20 21 |
# File 'lib/parlour/generator.rb', line 15 def initialize(break_params: 4, tab_size: 2, sort_namespaces: false) @options = Options.new( break_params: break_params, tab_size: tab_size, sort_namespaces: sort_namespaces ) end |
Instance Attribute Details
#current_plugin ⇒ Plugin?
The plugin which is currently generating new definitions. Plugin.run_plugins controls this value.
32 33 34 |
# File 'lib/parlour/generator.rb', line 32 def current_plugin @current_plugin end |
#options ⇒ Options (readonly)
The formatting options for this generator. Currently ignored.
26 27 28 |
# File 'lib/parlour/generator.rb', line 26 def @options end |