Sha256: 9047a8a1230da5f41243557d51d6467ceb9bd636d458873a37309ea595d7c95a

Contents?: true

Size: 853 Bytes

Versions: 1

Compression:

Stored size: 853 Bytes

Contents

module Bowline
  VERSION = '0.1.8'

  # 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/helpers'
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

1 entries across 1 versions & 1 rubygems

Version Path
maccman-bowline-0.1.8 lib/bowline.rb