Module: Lono::Configset::Strategy::Dsl::Helpers::Core
- Included in:
- Lono::Configset::Strategy::Dsl::Helpers
- Defined in:
- lib/lono/configset/strategy/dsl/helpers/core.rb
Instance Method Summary collapse
Instance Method Details
#content_file(path) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/lono/configset/strategy/dsl/helpers/core.rb', line 3 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 |