Sha256: 57170d0c86ea51bd6c88cbe99622447efe8c8664bfe918f51b7dfc72ea1b89c4

Contents?: true

Size: 282 Bytes

Versions: 1

Compression:

Stored size: 282 Bytes

Contents

module Music
module Arrangement

class FileRequirement
  def initialize file_path, relative = false
    @file_path = file_path
    @relative = relative
  end

  def load
    if @relative
      require_relative @file_path
    else
      require @file_path
    end
  end
end

end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
music-arrangement-0.3.0 lib/music-arrangement/file_requirement.rb