Sha256: f6f37e3530d5aa4687e00339d42391652d47c6ace008326f9a4bb18098b67ffe

Contents?: true

Size: 217 Bytes

Versions: 32

Compression:

Stored size: 217 Bytes

Contents

#
# you can add class/module fattrs the 'normal' way or using the provided
# shortcut method
#
  require 'fattr'

  class C
    class << C
      fattr 'a' => 4
    end

    Fattr 'b' => 2
  end

  p [ C.a, C.b ].join

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
fattr-2.4.0 samples/g.rb
fattr-2.3.0 samples/g.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/g.rb
fattr-2.2.2 samples/g.rb
abiquo-etk-0.6.4 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.6.3 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.6.2 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.6.1 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.6.0 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.5.9 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.5.8 vendor/fattr-2.1.0/samples/g.rb
fattr-2.2.1 samples/g.rb
abiquo-etk-0.5.3 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.4.42 vendor/fattr-2.1.0/samples/g.rb
fattr-2.2.0 samples/g.rb
abiquo-etk-0.4.33 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.4.32 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.4.29 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.4.25 vendor/fattr-2.1.0/samples/g.rb
abiquo-etk-0.4.24 vendor/fattr-2.1.0/samples/g.rb