class Unibilium::Extensions
- Unibilium::Extensions
- Reference
- Object
Defined in:
extensions.crConstructors
Instance Method Summary
- #[](arg)
- #[]?(arg)
-
#add(name, value : ValidType)
Adds the capability extension named name, and set it to value.
- #count_bool
- #count_num
- #count_str
-
#delete(name)
Deletes the capability name.
- #destroy
- #get_bool(name)
- #get_bool?(name)
- #get_bool_name(i)
- #get_num(name)
- #get_num?(name)
- #get_num_name(i)
- #get_str(name)
- #get_str?(name)
- #get_str_name(i)
-
#has?(name)
Returns
true
if the extension named name exists. -
#rename(old old_name, new new_name)
Gives a new name to the capability old_name.
- #saved_cap_extensions : Unibilium::Extensions::UniqueHash
-
#set(name, value)
Sets the value of capability name to value.
- #to_unsafe : Pointer(Void)
Constructor Detail
Instance Method Detail
Adds the capability extension named name, and set it to value. The type of the capability is given by the type of value (either Bool, Int32 or String)
def set(name, value)
#
Sets the value of capability name to value.
It adds the capability first if it doesn't exist.