Class: Xmlss::Style::Protection
- Inherits:
-
Object
- Object
- Xmlss::Style::Protection
- Defined in:
- lib/xmlss/style/protection.rb
Instance Attribute Summary collapse
-
#protect ⇒ Object
Returns the value of attribute protect.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ Protection
constructor
A new instance of Protection.
- #protected? ⇒ Boolean
Constructor Details
#initialize(value = nil) ⇒ Protection
Returns a new instance of Protection.
10 11 12 |
# File 'lib/xmlss/style/protection.rb', line 10 def initialize(value=nil) self.protect = value end |
Instance Attribute Details
#protect ⇒ Object
Returns the value of attribute protect.
8 9 10 |
# File 'lib/xmlss/style/protection.rb', line 8 def protect @protect end |
Class Method Details
.writer ⇒ Object
6 |
# File 'lib/xmlss/style/protection.rb', line 6 def self.writer; :protection; end |
Instance Method Details
#protected? ⇒ Boolean
14 |
# File 'lib/xmlss/style/protection.rb', line 14 def protected?; !!self.protect; end |