voraz/spreadsheet — pull request #10 by timon (2012-05-01 14:30:05+00:00)
Title: Worksheet protection

Now you can protect your sheet from unintended changes

Example:
```ruby
@book = Spreadsheet::Workbook.new
@sheet = @book.create_worksheet :name => "Survey"
@sheet.default_format = Spreadsheet::Format.new(:locked => true)
@sheet.column(1).default_format = Spreadsheet::Format.new(:locked => false)

["Name", "Occupation", "Some question from marketing guys"].each_with_index do |question, index|
@sheet[index, 0] = question
end
@sheet.protect! "secret"
@book.write "Survey.xls"
```