Sha256: 8c9adb2cfcafc2e4b6e99922d0872545c6747299712d6253a5410dc956f4a226

Contents?: true

Size: 878 Bytes

Versions: 1

Compression:

Stored size: 878 Bytes

Contents

require 'date'
require 'ostruct'
require 'rexml/document'
require 'pp'
require 'rubyvis/internals'
require 'rubyvis/sceneelement'

require 'rubyvis/javascript_behaviour'
require 'rubyvis/format'
require 'rubyvis/label'
require 'rubyvis/mark'
require 'rubyvis/scale'
require 'rubyvis/color/color'
require 'rubyvis/color/colors'

require 'rubyvis/scene/svg_scene'
require 'rubyvis/transform'

def pv
  Rubyvis
end

module Rubyvis
  VERSION = '0.1.0'
  Infinity=1.0 / 0 # You actually can do it! http://snipplr.com/view/2137/uses-for-infinity-in-ruby/
  # :section: basic methods
  def self.identity
    lambda {|x,*args| x}
  end
  def self.index
    lambda {|*args| self.index}
  end
  def self.child
    lambda {|*args| self.child_index}
  end
  def self.parent
    lambda {|*args| self.parent.index}
  end
  def self.document
    @document||=REXML::Document.new
  end
    
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyvis-0.1.0 lib/rubyvis.rb