Module: Sevgi::Function
- Defined in:
- 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: Color, File, Math, Pluralize, Shell, String, UI Classes: Locate
Constant Summary collapse
- VERSION =
"0.73.2"
Constants included from Pluralize
Pluralize::IRREGULARS, Pluralize::PLURALS, Pluralize::RULES, Pluralize::UNCOUNTABLES
Class Method Summary collapse
Methods included from UI
Methods included from File
changed?, existing, existing!, existings, existings!, out, qualify, subext, touch
Methods included from Math
acos, acot, approx, asin, atan, atan2, cos, cot, count, eq?, ge?, gt?, le?, lt?, round, sin, tan, to_degrees, to_radians, zero?
Methods included from Color
blue, bold, cyan, dim, green, magenta, red, yellow
Methods included from Shell
executable!, executable?, sh, sh!
Methods included from String
Methods included from Pluralize
Class Method Details
.locate(filename, start, exclude: nil, extension: EXTENSION) ⇒ Object
49 50 51 52 53 |
# File 'lib/sevgi/function/locate.rb', line 49 def self.locate(filename, start, exclude: nil, extension: EXTENSION) Locate.(F.qualify(filename, extension), start, exclude:).tap do |path| raise Error, "Cannot load a file matching: #{filename}" unless path end end |