Sha256: c18052bf1045bac495a6edc58588a2d0385cfb1594b0e15e24381169d2f6eb4f

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

module Lono::Configset::Strategy::Dsl::Helpers
  module Core
    def content_file(path)
      content_path = "#{@root}/lib/content"
      file = "#{content_path}/#{path}"
      if File.exist?(file)
        IO.read(file)
      else
        "File not found: #{file}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lono-7.3.2 lib/lono/configset/strategy/dsl/helpers/core.rb
lono-7.3.1 lib/lono/configset/strategy/dsl/helpers/core.rb
lono-7.3.0 lib/lono/configset/strategy/dsl/helpers/core.rb
lono-7.2.3 lib/lono/configset/strategy/dsl/helpers/core.rb
lono-7.2.2 lib/lono/configset/strategy/dsl/helpers/core.rb