Sha256: 0f4a1094770b9f433217da03e18bcbdcad7d685ae5ece788ea632ca6ba78cd49
Contents?: true
Size: 244 Bytes
Versions: 5
Compression:
Stored size: 244 Bytes
Contents
$LOAD_PATH.unshift '../lib' require 'memory_record' class Foo include MemoryRecord memory_record [ {key: 'true', name: '有効'}, {key: 'false', name: '無効'}, ] end flag = true Foo[flag.to_s].name # => "有効"
Version data entries
5 entries across 5 versions & 1 rubygems