Sha256: bd0cb0dbf5ffe8452ac84ce6e652c6fb56d469969bbcf50591a5ef0a1add4f69

Contents?: true

Size: 268 Bytes

Versions: 6

Compression:

Stored size: 268 Bytes

Contents

module TableCloth
  class Configuration
    include ConfigurableElements

    class << self
      def configure(&block)
        block.arity > 0 ? block.call(self) : yield
      end

      def config_for(type)
        self.send(type).to_hash
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
table_cloth-0.3.0.beta1 lib/table_cloth/configuration.rb
table_cloth-0.2.3 lib/table_cloth/configuration.rb
table_cloth-0.2.2 lib/table_cloth/configuration.rb
table_cloth-0.2.1 lib/table_cloth/configuration.rb
table_cloth-0.2.0 lib/table_cloth/configuration.rb
table_cloth-0.1.2 lib/table_cloth/configuration.rb