module Stevenson::OutputFilter
Public Class Methods
filter_for(type)
click to toggle source
# File lib/stevenson/output_filter.rb, line 36 def self.filter_for(type) Stevenson.output_filters[type] || const_get(type.to_s.capitalize) rescue NameError => e raise Stevenson::Error.new "Type '#{type}' is not a valid output type.", e end
generate!(template, options)
click to toggle source
# File lib/stevenson/output_filter.rb, line 32 def self.generate!(template, options) Generator.new(options).generate!(template) end