Module: Origami::XFA::Element::Lockable
- Defined in:
- lib/origami/xfa/xfa.rb
Overview
A permission flag for allowing or blocking attempted changes to the element. 0 - Allow changes to properties and content. 1 - Block changes to properties and content.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
94 95 96 |
# File 'lib/origami/xfa/xfa.rb', line 94 def self.included(receiver) receiver.xfa_attribute "lock" end |
Instance Method Details
#lock! ⇒ Object
82 83 84 |
# File 'lib/origami/xfa/xfa.rb', line 82 def lock! self.attr_lock = 1 end |
#locked? ⇒ Boolean
90 91 92 |
# File 'lib/origami/xfa/xfa.rb', line 90 def locked? self.attr_lock == 1 end |
#unlock! ⇒ Object
86 87 88 |
# File 'lib/origami/xfa/xfa.rb', line 86 def unlock! self.attr_lock = 0 end |