Module: Lono::Configset::Strategy::Helpers::Dsl::Core
- Defined in:
- lib/lono/configset/strategy/helpers/dsl/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/helpers/dsl/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 |