Sha256: 80fa00fbd8c7ffc82a3ada50e11a020e72e41811b096a8c285d89444537a7b6d

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 Bytes

Contents

require 'dir_model/version'

require 'active_support/concern'

require 'dir_model/utils'

require 'dir_model/core_ext/dir'
require 'dir_model/core_ext/zip_dir/zipper'

require 'dir_model/export'
require 'dir_model/export/aggregate_dir'

require 'inherited_class_var'

module DirModel
  extend ActiveSupport::Concern

  included do
    include Utils
    include InheritedClassVar
    inherited_class_hash :files
  end

  module ClassMethods

    # @return [Array<Symbol>] file names
    def file_names
      files.keys
    end

    protected

    def file(file_name, options={})
      merge_files(file_name.to_sym => options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dir_model-0.2.0 lib/dir_model.rb