Class: Plistr::Boolean

Inherits:
Element show all
Defined in:
lib/plistr.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Boolean

Returns a new instance of Boolean.



81
82
83
# File 'lib/plistr.rb', line 81

def initialize(value)
  @value = value
end

Instance Method Details

#parseObject



85
86
87
# File 'lib/plistr.rb', line 85

def parse
  @value == "true"
end