Sha256: 1b192e5385c01a6960a40fb0d587d777c4b5676c48abf202b8b9b8ac99fe9cfe
Contents?: true
Size: 460 Bytes
Versions: 11
Compression:
Stored size: 460 Bytes
Contents
module Spectifly module Base class Configuration def initialize(config = {}) @entity_path = config.fetch(:entity_path) @presenter_path = config[:presenter_path] end def presenter_path @presenter_path ||= begin proposed_path = File.join(@entity_path, 'presenters') if Dir.exists?(proposed_path) @presenter_path = proposed_path end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems