Sha256: 2aa869577ac0143d20904237d86d5a02ea1003bf335b4e0595f3a8df81618117

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

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

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

  c = C.new
  c.x = c.y + c.z
  p c.x

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attributes-3.0.1 samples/c.rb
attributes-3.0.0 samples/c.rb