Sha256: 451ee59e3d264a8dcbf95732480ec4b8d8050c655d49aa8945212325310527fa

Contents?: true

Size: 208 Bytes

Versions: 5

Compression:

Stored size: 208 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

5 entries across 5 versions & 1 rubygems

Version Path
attributes-3.6.0 samples/c.rb
attributes-3.7.0 samples/c.rb
attributes-3.2.0 samples/c.rb
attributes-3.5.0 samples/c.rb
attributes-3.3.0 samples/c.rb