Top Level Namespace

Defined Under Namespace

Modules: Logging Classes: String, Tokens, TokensChecker, TokensWriter, UnReplacedTokenException

Instance Method Summary collapse

Instance Method Details

#keys_for(environment, values) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/tokenr/tokens_helpers.rb', line 2

def keys_for(environment, values)
	environment = environment.to_s.downcase

	if @environments.has_key?(environment)
		@environments[environment] = @environments[environment].merge(values)
	else
		@environments[environment] = values
	end
end

#share_with(environments, values) ⇒ Object



12
13
14
# File 'lib/tokenr/tokens_helpers.rb', line 12

def share_with(environments, values)
	environments.each { |environment| keys_for(environment, values) }
end