Module: Sevgi
- Defined in:
- lib/sevgi/core.rb,
lib/sevgi/function.rb,
lib/sevgi/function/ui.rb,
lib/sevgi/function/file.rb,
lib/sevgi/function/math.rb,
lib/sevgi/function/color.rb,
lib/sevgi/function/shell.rb,
lib/sevgi/function/locate.rb,
lib/sevgi/function/string.rb,
lib/sevgi/function/version.rb
Defined Under Namespace
Modules: Function Classes: Error
Constant Summary collapse
- ENVVOMIT =
Constants
"SEVGI_VOMIT"- EXTENSION =
"sevgi"- PanicError =
for incorrect API usage
Class.new(Error)
- ArgumentError =
Class.new(Error)
- EMPTY_ARRAY =
Helpers Copied from https://github.com/dry-rb/dry-core. All kudos to the original authors.
[].freeze
- EMPTY_HASH =
{}.freeze
- EMPTY_OPTS =
{}.freeze
- EMPTY_STRING =
""- IDENTITY =
-> (x) { x }.freeze
- Undefined =
Object .new .tap do |undefined| const_set(:Self, -> { Undefined }) def undefined.to_s = "Undefined" def undefined.inspect = "Undefined" def undefined.default(x, y = self) return x unless equal?(x) equal?(y) ? yield : y end def undefined.map(value) = equal?(value) ? self : yield(value) def undefined.dup = self def undefined.clone = self def undefined.coalesce(*args) = args.find(Self) { |x| !equal?(x) } end .freeze
- F =
Function