Sha256: 1950407d684e157bf4a859cc1859d1f3fc1a292333953842d514db6dd0942ea1

Contents?: true

Size: 766 Bytes

Versions: 23

Compression:

Stored size: 766 Bytes

Contents

require 'sugarcube'

exclude = [
  'sugarcube-all.rb',
  'sugarcube-common.rb',
  'sugarcube-classic.rb',
  'sugarcube-legacy.rb',
  'sugarcube-uicolor.rb',
  'sugarcube-uiimage.rb',
  'sugarcube-spritekit.rb',

  'sugarcube-568.rb',
  'sugarcube-anonymous.rb',
  'sugarcube-attributedstring.rb',
  'sugarcube-awesome.rb',
  'sugarcube-gestures.rb',
  'sugarcube-pipes.rb',
  'sugarcube-repl.rb',
  'sugarcube-unholy.rb',
]

if SugarCube.ios?
  exclude += [
    'sugarcube-appkit.rb',
  ]
elsif SugarCube.osx?
  exclude += [
    'sugarcube-modal.rb',
    'sugarcube-uikit.rb',
  ]
end

dirname = File.dirname(__FILE__)
Dir.glob(File.join(dirname, '*.rb')).each do |file|
  filename = File.basename(file)
  unless exclude.include? filename
    require file
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
sugarcube-2.3.0 lib/sugarcube-classic.rb
sugarcube-2.2.0 lib/sugarcube-classic.rb
sugarcube-2.1.5 lib/sugarcube-classic.rb