Class: Rys::Generators::Rspec::Base

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/rys/rspec/base.rb

Class Method Summary collapse

Class Method Details

.source_root(path = nil) ⇒ Object


8
9
10
11
# File 'lib/generators/rys/rspec/base.rb', line 8

def self.source_root(path=nil)
  @_source_root = path if path
  @_source_root ||= File.expand_path('templates', __dir__)
end