Class: Couchbase::Generators::Base

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/rails/generators/couchbase_generator.rb

Overview

:nodoc:

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) source_root



28
29
30
31
# File 'lib/rails/generators/couchbase_generator.rb', line 28

def self.source_root
  @_couchbase_source_root ||=
    File.expand_path("../#{base_name}/#{generator_name}/templates", __FILE__)
end

Instance Method Details

- (Object) module_namespacing(&block)



34
35
36
# File 'lib/rails/generators/couchbase_generator.rb', line 34

def module_namespacing(&block)
  yield if block
end