Sha256: 6509cfe2d9cbb5d29ab42dad3bde1f78243295fd91f3bbc021d0c33ca0a8b4f2

Contents?: true

Size: 289 Bytes

Versions: 24

Compression:

Stored size: 289 Bytes

Contents

module FbGraph2
  class Struct
    def self.inherited(klass)
      klass.send :include, AttributeAssigner
    end

    def initialize(attributes = {})
      assign attributes if respond_to? :assign
    end
  end
end

Dir[File.join(__dir__, 'struct/*.rb')].each do |file|
  require file
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
fb_graph2-0.7.1 lib/fb_graph2/struct.rb
fb_graph2-0.7.0 lib/fb_graph2/struct.rb
fb_graph2-0.6.2 lib/fb_graph2/struct.rb
fb_graph2-0.6.1 lib/fb_graph2/struct.rb
fb_graph2-0.6.0 lib/fb_graph2/struct.rb
fb_graph2-0.5.3 lib/fb_graph2/struct.rb
fb_graph2-0.5.2 lib/fb_graph2/struct.rb
fb_graph2-0.5.1 lib/fb_graph2/struct.rb
fb_graph2-0.5.0 lib/fb_graph2/struct.rb
fb_graph2-0.4.4 lib/fb_graph2/struct.rb
fb_graph2-0.4.3 lib/fb_graph2/struct.rb
fb_graph2-0.4.1 lib/fb_graph2/struct.rb
fb_graph2-0.4.0 lib/fb_graph2/struct.rb
fb_graph2-0.3.2 lib/fb_graph2/struct.rb
fb_graph2-0.3.1 lib/fb_graph2/struct.rb
fb_graph2-0.3.0 lib/fb_graph2/struct.rb
fb_graph2-0.2.0 lib/fb_graph2/struct.rb
fb_graph2-0.1.3 lib/fb_graph2/struct.rb
fb_graph2-0.1.2 lib/fb_graph2/struct.rb
fb_graph2-0.1.1 lib/fb_graph2/struct.rb