Sha256: a4a0598776ad07886f11d8e34dc300b8312c0aaee8633bf1602e36e41f52c557

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

if RUBY_ENGINE != 'opal'
  module React
    module Config
      extend self
      def environment=(value)
        config[:environment] = value
      end

      def config
        @config ||= default_config
      end

      def default_config
        {
          environment: ENV['RACK_ENV'] || 'development'
        }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyper-react-0.12.6 lib/react/config/server.rb
hyper-react-0.12.5 lib/react/config/server.rb
hyper-react-0.12.4 lib/react/config/server.rb
hyper-react-0.12.3 lib/react/config/server.rb
hyper-react-0.12.2 lib/react/config/server.rb
hyper-react-0.12.1 lib/react/config/server.rb
hyper-react-0.12.0 lib/react/config/server.rb