Class: Xmlss::Style::Protection

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#protectObject

Returns the value of attribute protect.



8
9
10
# File 'lib/xmlss/style/protection.rb', line 8

def protect
  @protect
end

Class Method Details

.writerObject



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

def self.writer; :protection; end

Instance Method Details

#protected?Boolean

Returns:

  • (Boolean)


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

def protected?; !!self.protect; end