Class: BinaryParser::BuiltInTemplate::Flag
Instance Method Summary
collapse
Def, #[], #binary_bit_length, #convert_into_abstract_binary, def_structure, def_var_method, #hold_enough_binary?, #hold_just_binary?, #initialize, #load, #names, #show, structure, #structure_bit_length, #to_chars, #to_i, #to_s
Instance Method Details
#content_description ⇒ Object
17
18
19
|
# File 'lib/built_in_template/flag.rb', line 17
def content_description
on? ? "true" : "false"
end
|
#off? ⇒ Boolean
Also known as:
unflagged?
11
12
13
|
# File 'lib/built_in_template/flag.rb', line 11
def off?
return !on?
end
|
#on? ⇒ Boolean
Also known as:
flagged?
5
6
7
|
# File 'lib/built_in_template/flag.rb', line 5
def on?
return to_i[0] == 1
end
|