Sha256: ba770483cd0c50666bb5e5787f37ccf6275e657d7de8171a07c8086d1e494211

Contents?: true

Size: 792 Bytes

Versions: 5

Compression:

Stored size: 792 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core::Shape
    
    # @private
    class List::SectionFormat < Manager::Format
      config_reader :height
      config_reader :relative_left => %w( translate x ),
                    :relative_top  => %w( translate y )
      
      config_reader :layout      => %w( svg content ),
                    :svg_tag     => %w( svg tag ),
                    :svg_attrs   => %w( svg attrs )
      
      class << self
      private
        
        def build_internal(raw_format)
          new(raw_format) do |f|
            build_layout(f, :level => 2) do |type, shape_format|
              Core::Shape::Format(type).build(shape_format)
            end
            clean(f.layout)
          end
        end
      end
      
    end    
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/shape/list/section_format.rb
thinreports-0.7.6 lib/thinreports/core/shape/list/section_format.rb
thinreports-0.7.5 lib/thinreports/core/shape/list/section_format.rb
thinreports-0.7.0 lib/thinreports/core/shape/list/section_format.rb
thinreports-0.6.0.pre3 lib/thinreports/core/shape/list/section_format.rb