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.
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.
8 9 10 |
# File 'lib/xmlss/style/protection.rb', line 8 def initialize(value=nil) self.protect = value end |
Instance Attribute Details
#protect ⇒ Object
Returns the value of attribute protect.
6 7 8 |
# File 'lib/xmlss/style/protection.rb', line 6 def protect @protect end |
Instance Method Details
#protected? ⇒ Boolean
12 |
# File 'lib/xmlss/style/protection.rb', line 12 def protected?; !!self.protect; end |