class Modernize::Parser

Public Class Methods

parse(&block) click to toggle source

Executes a block to figure out the sets of translations and version.

# File lib/modernizer/parser.rb, line 5
def self.parse(&block)
  context = BlockParsingContext.new
  context.instance_exec(&block)
  context.migrations
end