Module: React::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/react/config/client.rb

Instance Method Summary collapse

Instance Method Details

#configObject



11
12
13
# File 'lib/react/config/client.rb', line 11

def config
  @config ||= default_config
end

#default_configObject



15
16
17
18
19
# File 'lib/react/config/client.rb', line 15

def default_config
  {
    environment: 'express'
  }
end

#environment=(value) ⇒ Object



7
8
9
# File 'lib/react/config/client.rb', line 7

def environment=(value)
  config[:environment] = value
end