Sha256: bf50b0517779767c5e6dcbd307e92977e52166c7a9c5029e4717d2fd15d9c9a0

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

module Spectifly
  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spectifly-0.0.1 lib/spectifly/configuration.rb