Module: Eggshell::Bundles::BasicFunctions
- Defined in:
- lib/eggshell/bundles/basic-functions.rb
Overview
Standard functions to perform basic operations for common objects.
Class Method Summary collapse
- .arr_delete(arr, index) ⇒ Object
- .arr_pop(arr) ⇒ Object
- .arr_push(arr, *items) ⇒ Object
- .length(obj) ⇒ Object
- .map_delete(map, key) ⇒ Object
- .map_push(map, key, val) ⇒ Object
- .str_match(haystack, needle) ⇒ Object
- .str_split(str, delim, limit = nil) ⇒ Object
Class Method Details
.arr_delete(arr, index) ⇒ Object
23 24 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 23 def self.arr_delete(arr, index) end |
.arr_pop(arr) ⇒ Object
20 21 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 20 def self.arr_pop(arr) end |
.arr_push(arr, *items) ⇒ Object
17 18 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 17 def self.arr_push(arr, *items) end |
.length(obj) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 3 def self.length(obj) if obj.respond_to?(:length) obj.length else nil end end |
.map_delete(map, key) ⇒ Object
29 30 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 29 def self.map_delete(map, key) end |
.map_push(map, key, val) ⇒ Object
26 27 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 26 def self.map_push(map, key, val) end |
.str_match(haystack, needle) ⇒ Object
11 12 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 11 def self.str_match(haystack, needle) end |
.str_split(str, delim, limit = nil) ⇒ Object
14 15 |
# File 'lib/eggshell/bundles/basic-functions.rb', line 14 def self.str_split(str, delim, limit = nil) end |