Sha256: b887a871aba49c34fbc744cec1642a5bf0c81ffdf134c35ffd107acfe4024461

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

require "nuklear/version"
require "nuklear/nuklear"
require 'nuklear/context'
require 'nuklear/event_buffer'
require 'nuklear/ui'
require 'nuklear/renderer'
require 'nuklear/style'
require 'nuklear/dsl'

module Nuklear
  autoload :TestCase, 'nuklear/test_case'

  class Error < StandardError; end
  # Your code goes here...

  class << self
    def parse_flags(prefix, *flags)
      flags.flatten.reduce(0) do |set, flag|
        set | case flag
              when Symbol, String then Nuklear.const_get("NK_#{prefix.upcase}_#{flag.upcase}")
              else flag
              end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nuklear-0.1.3 lib/nuklear.rb
nuklear-0.1.2 lib/nuklear.rb
nuklear-0.1.1 lib/nuklear.rb
nuklear-0.1.0 lib/nuklear.rb