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
103 104 105 |
# File 'lib/origami/xfa/xfa.rb', line 103 def self.included(receiver) receiver.xfa_attribute "lock" end |
Instance Method Details
#lock! ⇒ Object
91 92 93 |
# File 'lib/origami/xfa/xfa.rb', line 91 def lock! self.attr_lock = 1 end |
#locked? ⇒ Boolean
99 100 101 |
# File 'lib/origami/xfa/xfa.rb', line 99 def locked? attr_lock == 1 end |
#unlock! ⇒ Object
95 96 97 |
# File 'lib/origami/xfa/xfa.rb', line 95 def unlock! self.attr_lock = 0 end |