class Spectifly::Base::Configuration
Public Class Methods
new(config = {})
click to toggle source
# File lib/spectifly/base/configuration.rb, line 4 def initialize(config = {}) @entity_path = config.fetch(:entity_path) @presenter_path = config[:presenter_path] end
Public Instance Methods
presenter_path()
click to toggle source
# File lib/spectifly/base/configuration.rb, line 9 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