Sha256: bfe5df0f7445783920ef55db2c6c343466402e67158b6444af6f1c5386b22401

Contents?: true

Size: 523 Bytes

Versions: 8

Compression:

Stored size: 523 Bytes

Contents

module DirModel
  module Model
    extend ActiveSupport::Concern

    included do
      include Utils
      include Files
      include Relations
      
      # @return [Model] return the parent, if this instance is a child
      attr_reader :parent
    end
    
    # @param [NilClass] path not used here, see {Input}
    # @param [Hash] options
    # @option options [String] :parent if the instance is a child, pass the parent
    def initialize(path=nil, options={})
      @parent = options[:parent]
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dir_model-0.7.1 lib/dir_model/model.rb
dir_model-0.7.0 lib/dir_model/model.rb
dir_model-0.6.2 lib/dir_model/model.rb
dir_model-0.6.1 lib/dir_model/model.rb
dir_model-0.6.0 lib/dir_model/model.rb
dir_model-0.5.2 lib/dir_model/model.rb
dir_model-0.5.1 lib/dir_model/model.rb
dir_model-0.5.0 lib/dir_model/model.rb