Sha256: d9d2e9a93f0d09c63aa5c573486de90a4e7f4bb0da3dda032b840daec1cc81e5
Contents?: true
Size: 241 Bytes
Versions: 3
Compression:
Stored size: 241 Bytes
Contents
module Rocx module Properties class OnOffProperty < ValueProperty def ok_values [nil, :on, :off] end def to_xml(xml) xml["w"].public_send(tag, "w:val" => value) if value end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.7.0 | lib/rocx/properties/on_off_property.rb |
rocx-0.6.0 | lib/rocx/properties/on_off_property.rb |
rocx-0.5.8 | lib/rocx/properties/on_off_property.rb |