module Feather

Public Class Methods

new(*args) { |template| ... } click to toggle source

Create a new template with a supplied template body and optional options.

# File lib/feather.rb, line 17
def self.new(*args)
  template = Feather::Template.new(*args)

  yield(template) if (block_given?)

  template
end
version() click to toggle source

Returns the current library version

# File lib/feather.rb, line 10
def self.version
  @version ||= File.readlines(
    File.expand_path('../VERSION', File.dirname(__FILE__))
).first.chomp
end