Class: Modernize::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/modernizer/parser.rb

Class Method Summary collapse

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