#!/usr/bin/env ruby # Copyright Ultragreen (c) 2005 #--- # Author : Romain GEORGES # type : class definition Ruby # obj : Generic config library #--- # $Id$ require 'rubygems' require 'methodic' require 'services' module Carioca module Services class Configuration private # constructor type could be a section name in result # override could be true of false and precise if the block of the application have # to override the main config hash result, default is true def initialize(_options) options = Methodic.get_options(_options) options.specify_classes_of :config_file => String options.validate! end def test(params) return 'toto' end end end end # interactive hacks if $0 == __FILE__ then puts "#{File::basename(__FILE__)}:" puts 'this is a RUBY library file' puts "Copyright (c) Ultragreen" end