Sha256: 0552ac2614599d0fd13d3c338fd5df66de7e1588c923217f2c8f33f83e5515c1

Contents?: true

Size: 827 Bytes

Versions: 3

Compression:

Stored size: 827 Bytes

Contents

module Bowline
  VERSION = '0.1.6'

  # The raw JavaScript window object
  def self.js
    if defined?($app_window)
      $app_window
    else
      Class.new { 
        def self.method_missing(*a)
          Bowline.logger.info "Sending to Window: #{a.inspect}"
          self
        end 
      }
    end
  end
  
  # Change which page we're on
  def self.show_view(name)
    js.window.location = "app://public/#{name}.html"
  end
  
  class Base
  end
end

$LOAD_PATH << File.dirname(__FILE__)

require 'bowline/ext/object'
require 'bowline/ext/array'
require 'bowline/ext/class'
require 'bowline/ext/string'

require 'bowline/gem_dependency'
require 'bowline/initializer'

require 'bowline/jquery'
require 'bowline/observer'

require 'bowline/binders'
require 'bowline/binders/collection'
require 'bowline/binders/singleton'

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
maccman-bowline-0.1.6 lib/bowline.rb
maccman-bowline-0.1.7 lib/bowline.rb
bowline-0.1.6 lib/bowline.rb