Sha256: 57e66a99866217dee6e91ce8683be211440bd6fb80fe4971ca31bc75c778f382
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
$:.unshift File.dirname(__FILE__) require 'rubygems' require 'ext/string' require 'ext/filemethods' require 'shining/preso' require 'shining/player' require 'shining/heroku' require 'shining/errors' module Shining class << self def quiet! @quiet = true end def quiet? !!@quiet end def verbose! @quiet = false end def say something STDOUT.puts(something) unless quiet? yield if block_given? end def error message STDERR.puts message end def root @root ||= File.expand_path File.dirname(__FILE__)/'..' end def templates_path root/'templates' end def sample_content_for format = 'html' case format when 'markdown' <<-CONTENTS # #{name} This is a new slide. It needs some lovin'! CONTENTS when 'haml' <<-CONTENTS %h1.centered #{name} %p.centered This is a new slide. It needs some lovin'! CONTENTS when 'html' <<-CONTENTS <h1 class="centered">#{name}</h1> <p class="centered">This is a new slide. It needs some lovin'!</p> CONTENTS end end end VERSION = File.read Shining.root/'VERSION' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shining-1.3.5 | lib/shining.rb |