class Skr::Print::Template
Public Class Methods
as_json()
click to toggle source
# File lib/skr/print/template.rb, line 39 def self.as_json json={} definitions.each do | definition | json[definition.name] = definition.choices end json end
definitions()
click to toggle source
# File lib/skr/print/template.rb, line 31 def self.definitions Pathname.glob(Skr::Print::ROOT.join('types','*')).select { | type | type.directory? }.map { | type | Definition.new( type ) } end
get(type)
click to toggle source
# File lib/skr/print/template.rb, line 27 def self.get(type) Definition.new( Skr::Print::ROOT.join('types', type ) ) end