class Utils::Config::ConfigFile::BlockConfig

def config(name, *r, &block)

def config(name, *r, &block)
  self.dsl_attributes ||= []
  dsl_attributes << name.to_sym
  dsl_accessor name, *r, &block
  self
end

def inherited(modul)

def inherited(modul)
  modul.extend DSLKit::DSLAccessor
  super
end

def initialize(&block)

def initialize(&block)
  block and instance_eval(&block)
end

def to_ruby

def to_ruby
  result = ''
  result << "#{self.class.name[/::([^:]+)\Z/, 1].underscore} do\n"
  for da in self.class.dsl_attributes
    result << "  #{da} #{Array(__send__(da)).map(&:inspect) * ', '}\n"
  end
  result << "end\n"
end