Module: Ember
- Defined in:
- lib/ember/inochi.rb,
lib/ember/template.rb
Defined Under Namespace
Classes: Template
Constant Summary
- PROJECT =
Official name of this project.
"Ember"
- TAGLINE =
Short single-line description of this project.
"eRuby template processor"
- WEBSITE =
Address of this project’s official home page.
"http://snk.tuxfamily.org/lib/ember/"
- VERSION =
Number of this release of this project.
"0.1.0"
- RELDATE =
Date of this release of this project.
"2010-04-03"
- INSTDIR =
Location of this release of this project.
File.('../../..', __FILE__)
- RUNTIME =
RubyGems required by this project during runtime.
{}
- DEVTIME =
RubyGems required by this project during development.
{ "inochi" => [ "~> 2" ], # for managing this project "dfect" => [ "~> 2" ], # for unit testing }
Class Method Summary
-
+ (Object) inspect
Description of this release of this project.
- + (Object) require(gem_name_or_library)
Class Method Details
+ (Object) inspect
Description of this release of this project.
31 32 33 |
# File 'lib/ember/inochi.rb', line 31 def self.inspect "#{PROJECT} #{VERSION} (#{RELDATE})" end |
+ (Object) require(gem_name_or_library)
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/ember/inochi.rb', line 86 def self.require gem_name_or_library # prepare the correct version of the gem for loading if respond_to? :gem gem_name = gem_name_or_library.to_s.sub(%r{/.*$}, '') if gem_version = RUNTIME[gem_name] || DEVTIME[gem_name] begin gem gem_name, *gem_version rescue LoadError => error warn "#{self.inspect}: #{error}" end end end # do the loading super end |