Module: Sampler

Defined in:
lib/sampler.rb,
lib/sampler/railtie.rb,
lib/sampler/version.rb,
lib/generators/sampler/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Railtie

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Sampler)

    the object that the method was called on



13
14
15
# File 'lib/sampler.rb', line 13

def self.config(&block)
  yield self
end

.environmentsObject



5
6
7
# File 'lib/sampler.rb', line 5

def self.environments
  @@environments ||= %w(development)
end

.environments=(environments) ⇒ Object



9
10
11
# File 'lib/sampler.rb', line 9

def self.environments=(environments)
  @@environments = environments
end