Sha256: ce27b456dee3fd1ce220327cb961bd1677a3eb56081e2bbe055254bace013fbb

Contents?: true

Size: 220 Bytes

Versions: 3

Compression:

Stored size: 220 Bytes

Contents

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

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

    Fattr 'b' => 2
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fattr-1.1.0 samples/g.rb
fattr-1.0.2 samples/g.rb
fattr-1.0.3 samples/g.rb