Sha256: dc208d49bfa197df3a0d8775a6dad09fb88de8e8a7338997164d16dc6b58e862
Contents?: true
Size: 742 Bytes
Versions: 8
Compression:
Stored size: 742 Bytes
Contents
module TDiary class Application class Configuration attr_accessor :assets_paths, :assets_precompile, :plugin_paths, :path, :builder_procs, :authenticate_proc def initialize # if you need to auto compilation for CoffeeScript @assets_precompile = false; @plugin_paths = [] @path = { index: '/', update: '/update.rb', assets: '/assets' } @builder_procs = [] @authenticate_proc = proc { } end def builder(&block) @builder_procs << block end def authenticate(middleware, *params, &block) @authenticate_proc = proc { use middleware, *params, &block } end end end end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End:
Version data entries
8 entries across 8 versions & 1 rubygems