Sha256: 6b8d074bb1fe8ac70ac1117f781f517233fe84cb8ac7ef885ce13b1e003b74eb

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

module Fathom
  class Network
    
    # ============
    # = Behavior =
    # ============
    extend Plugins
    include Enumerable
    plugin AttributeSystem
    
    # ==============
    # = Attributes =
    # ==============
    attribute :name
    attribute :variables, []
    attribute :properties, []
    attribute :edges, []
    attribute :definitions, []
    
    def initialize(attrs={})
      @attributes = attrs
    end
    
    # ====================
    # = Instance Methods =
    # ====================
    def each(&block)
      variables.each do |variable|
        yield variable
      end
    end
    alias :each_variable :each
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fathom-0.5.0 lib/fathom/data/network.rb