Sha256: edc55ba81791d591950bca24a8da43669f294537f034ee6fbfa8031e1bbadfc0

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

module Axlsx

  class CellProtection
    attr_accessor :hidden, :locked
    def initialize(options={})
      options.each do |o|
        self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
      end
    end
    def hidden=(v) Axlsx::validate_boolean v; @hidden = v end    
    def locked=(v) Axlsx::validate_boolean v; @locked = v end    
    def to_xml(xml)
      xml.protection(self.instance_values)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
axlsx-1.0.7 lib/axlsx/stylesheet/cell_protection.rb~
axlsx-1.0.6 lib/axlsx/stylesheet/cell_protection.rb~
axlsx-1.0.5 lib/axlsx/stylesheet/cell_protection.rb~
axlsx-1.0.4 lib/axlsx/stylesheet/cell_protection.rb~
axlsx-1.0.3 lib/axlsx/stylesheet/cell_protection.rb~
axlsx-1.0.1 lib/axlsx/stylesheet/cell_protection.rb~