Class: Origami::XDP::Packet::Template::Boolean

Inherits:
Origami::XFA::Element show all
Defined in:
lib/origami/xfa/template.rb

Constant Summary collapse

NO =
0
YES =
1

Instance Method Summary collapse

Methods included from Origami::XFA

included

Constructor Details

#initialize(bool = nil) ⇒ Boolean

Returns a new instance of Boolean.


42
43
44
45
46
# File 'lib/origami/xfa/template.rb', line 42

def initialize(bool = nil)
    super('boolean')

    self.text = bool
end