lib/ircsupport/numerics.rb in ircsupport-0.1.0 vs lib/ircsupport/numerics.rb in ircsupport-0.2.0
- old
+ new
@@ -223,20 +223,22 @@
}
# @private
@@name_to_numeric_map = @@numeric_to_name_map.invert
+ module_function
+
+ # Look up the name of an IRC numeric.
# @param [String] numeric A numeric to look up.
# @return [String] The name of the numeric.
def numeric_to_name(numeric)
return @@numeric_to_name_map[numeric]
end
+ # Look up an IRC numeric by name.
# @param [String] name A name to look up.
# @return [String] The numeric corresponding to the name.
def name_to_numeric(name)
return @@name_to_numeric_map[name]
end
-
- module_function :numeric_to_name, :name_to_numeric
end
end