Sha256: 1beac1c00efbfe08429e1db6b77c754f38f04f244e542d7d4d690736b57ef08b

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

$LOAD_PATH.unshift '../lib'
require 'memory_record'

class C
  include MemoryRecord
  memory_record [
    {key: :alice}
  ]

  class << self
    def self.lookup(v)
      p __method__
      super
    end
  end
end

C.lookup(:alice)                # => #<C:0x00007ffe599ba4d8 @attributes={:key=>:alice, :code=>0}>
C[:alice]                       # => #<C:0x00007ffe599ba4d8 @attributes={:key=>:alice, :code=>0}>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
memory_record-0.0.11 examples/0250_lookup_super_call.rb
memory_record-0.0.10 examples/0250_lookup_super_call.rb
memory_record-0.0.9 examples/0250_lookup_super_call.rb