Sha256: 2b129a6dbc3dda97b751a7682ee628a2724a611575c5f6df98354bc40c5c5c3f

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module Style
        class Basic < Style::Base
          style_accessible :visible, :offset_x, :offset_y
          attr_accessor :visible

          style_accessor :offset_x, 'offset-x'
          style_accessor :offset_y, 'offset-y'

          def initialize(*args)
            super
            @visible = @format.display?
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.12.1 lib/thinreports/core/shape/style/basic.rb
thinreports-0.12.0 lib/thinreports/core/shape/style/basic.rb