module GithubChart

Graphing tool for creating Github-style contribution charts

Add SVG support to GithubChart

Define the version

Constants

COLOR_SCHEMES

Color schemes for gradient

VERSION

Public Class Methods

new(*args) click to toggle source

Helper to create new charts

# File lib/githubchart.rb, line 11
def new(*args)
  self::Chart.new(*args)
end
supported() click to toggle source

Helper to list supported types

# File lib/githubchart.rb, line 18
def supported
  @supported ||= []
end
supports?(type) click to toggle source

Helper to check for type support

# File lib/githubchart.rb, line 25
def supports?(type)
  supported.include? type.to_sym
end

Protected Class Methods

add_support(type) click to toggle source

Add support for a type

# File lib/githubchart.rb, line 34
def add_support(type)
  @supported ||= []
  @supported << type.to_sym
end

Public Instance Methods

unknown() click to toggle source

Declare SVG support

# File lib/githubchart/svg.rb, line 9
add_support(:svg)