Sha256: 929a8308599408f87199717d0ae4d94fbba7817bf5ec053b59e91c71ff733832

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

#
# multiple values may by given, plain names and key/val pairs may be mixed.
#
  require 'fattr'

  class C
    fattrs 'x', 'y' => 0b101000, 'z' => 0b10
  end

  c = C.new
  c.x = c.y + c.z
  p c.x #=> 42

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fattr-1.1.0 samples/c.rb
fattr-1.0.3 samples/c.rb
fattr-1.0.1 samples/c.rb
fattr-1.0.2 samples/c.rb