Class: Xmlss::Style::Protection

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlss/style/protection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#protectObject

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

Returns:

  • (Boolean)


12
# File 'lib/xmlss/style/protection.rb', line 12

def protected?; !!self.protect; end