Module: Feather

Defined in:
lib/feather.rb

Defined Under Namespace

Modules: Support Classes: Template

Class Method Summary collapse

Class Method Details

.new(*args) {|template| ... } ⇒ Object

Yields:

  • (template)


15
16
17
18
19
20
21
# File 'lib/feather.rb', line 15

def self.new(*args)
  template = Feather::Template.new(*args)

  yield(template) if (block_given?)

  template
end

.versionObject

Module Methods =======================================================



9
10
11
12
13
# File 'lib/feather.rb', line 9

def self.version
  @version ||= File.readlines(
    File.expand_path('../VERSION', File.dirname(__FILE__))
).first.chomp
end