class Ridgepole::MigrationExt::TimeRecorder

Attributes

result[R]

Public Class Methods

new() click to toggle source
# File lib/ridgepole/migration_ext.rb, line 48
def initialize
  @result = {}
end

Public Instance Methods

add_key(key) click to toggle source
# File lib/ridgepole/migration_ext.rb, line 52
def add_key(key)
  @key = key
end
add_value(value) click to toggle source
# File lib/ridgepole/migration_ext.rb, line 56
def add_value(value)
  @result[@key] = value if @key

  @key = nil
end