Sha256: e37d732b738b3333b7318c2d0848ca4c4f99c422d7eaa5d56f3e05c32f418d05

Contents?: true

Size: 1.46 KB

Versions: 5

Compression:

Stored size: 1.46 KB

Contents

module Native

    class << self
        attr_accessor :configuration
    end

    def self.configure
        self.configuration ||= Configuration.new
        yield configuration
    end
    
    class Configuration

        attr_accessor :android
        attr_accessor :ios
        attr_accessor :uwp
        attr_accessor :chrome
        attr_accessor :osx
        attr_accessor :win32
        attr_accessor :win64
        attr_accessor :lin32
        attr_accessor :lin64
        attr_accessor :android_url
        attr_accessor :ios_url
        attr_accessor :uwp_url
        attr_accessor :chrome_url
        attr_accessor :osx_url
        attr_accessor :win32_url
        attr_accessor :win64_url
        attr_accessor :lin32_url
        attr_accessor :lin64_url
        attr_accessor :scale_size

        def initialize
            @android = true
            @ios = true
            @uwp = true
            @chrome = true
            @osx = true
            @win32 = true
            @win64 = true
            @lin32 = true
            @lin64 = true
            @android_url = 'root_url'
            @ios_url = 'root_url'
            @uwp_url = 'root_url'
            @chrome_url = 'root_url'
            @osx_url = 'root_url'
            @win32_url = 'root_url'
            @win64_url = 'root_url'
            @lin32_url = 'root_url'
            @lin64_url = 'root_url'
            @scale_size = '18px'
        end

    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
native-2.1.4 lib/native/configuration.rb
native-2.1.3 lib/native/configuration.rb
native-2.1.2 lib/native/configuration.rb
native-2.1.1 lib/native/configuration.rb
native-2.1.0 lib/native/configuration.rb