class ROM::SQL::Migration::Recorder
@api private
Attributes
operations[R]
Public Class Methods
new(&block)
click to toggle source
# File lib/rom/sql/migration/recorder.rb, line 10 def initialize(&block) @operations = [] instance_exec(&block) if block end
Public Instance Methods
method_missing(m, *args, &block)
click to toggle source
# File lib/rom/sql/migration/recorder.rb, line 16 def method_missing(m, *args, &block) nested = block ? Recorder.new(&block).operations : EMPTY_ARRAY @operations << [m, args, nested] end