class Rspec::Generators::Base
@private
def self.configuration
- Private: -
def self.configuration @configuration ||= begin configuration = RSpec.configuration options = RSpec::Core::ConfigurationOptions.new({}) options.configure(configuration) configuration end end
def self.source_root(path = nil)
def self.source_root(path = nil) if path @_rspec_source_root = path else @_rspec_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'rspec', generator_name, 'templates')) end end
def target_path(*paths)
def target_path(*paths) File.join(self.class.configuration.default_path, *paths) end