Class: Modernize::Parser
- Inherits:
-
Object
- Object
- Modernize::Parser
- Defined in:
- lib/modernizer/parser.rb
Class Method Summary collapse
-
.parse(&block) ⇒ Object
Executes a block to figure out the sets of translations and version.
Class Method Details
.parse(&block) ⇒ Object
Executes a block to figure out the sets of translations and version.
5 6 7 8 9 |
# File 'lib/modernizer/parser.rb', line 5 def self.parse(&block) context = BlockParsingContext.new context.instance_exec(&block) context.migrations end |