class BinaryParser::BuiltInTemplate::Flag
Public Instance Methods
content_description()
click to toggle source
# File lib/binary_parser/built_in_template/flag.rb, line 17 def content_description on? ? "true" : "false" end
off?()
click to toggle source
# File lib/binary_parser/built_in_template/flag.rb, line 11 def off? return !on? end
Also aliased as: unflagged?
on?()
click to toggle source
# File lib/binary_parser/built_in_template/flag.rb, line 5 def on? return to_i[0] == 1 end
Also aliased as: flagged?