Sha256: dd09b9831b43a953112d523f32885f0cb7a3f83ea5a12a4878fe3a4788595f99
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
require 'erb' require 'active_support' require 'active_support/core_ext' module Dd2tf UNALLOWED_RESOURCE_TITLE_REGEXP = /\(|\)|'|,|\.|\[|\]|:/ class Base class NotImplementedError < StandardError; end def initialize(client) @client = client end def output raise NotImplementedError end private def template_file File.read("./lib/templates/#{self.class.name.split(":").last.underscore}.erb.rb") end def renderer ERB.new(template_file, nil, "-") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dd2tf-0.2.0 | lib/dd2tf/base.rb |