Sha256: d10f8282651587bff54a93ccc15f73cf4f75111772aceb8829f30416e6145eb3
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 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 unless quiet? 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shining-1.3.7 | lib/shining.rb |
shining-1.3.6 | lib/shining.rb |