Sha256: cb29b37711b14f169f3b8ea1cb2e7ee08a3b4d4ad6324a2b002c83eb6c4c68b1

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

module Lono::Builder::Configset::Definition::Dsl::Syntax
  module Content
    def content_file(path)
      content_path = "#{content_file_root}/content"
      file = "#{content_path}/#{path}"
      if File.exist?(file)
        IO.read(file)
      else
        "File not found: #{file}"
      end
    end

  private
    def content_file_root
      if @configset
        @configset.root
      else
        @blueprint.root
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/builder/configset/definition/dsl/syntax/content.rb
lono-8.0.0.pre.rc5 lib/lono/builder/configset/definition/dsl/syntax/content.rb
lono-8.0.0.pre.rc4 lib/lono/builder/configset/definition/dsl/syntax/content.rb