Module: RedAmber::ArrowFunction
- Included in:
- Vector
- Defined in:
- lib/red_amber/helper.rb
Overview
Helper for Arrow Functions
Class Method Summary collapse
-
.arrow_doc(function_name) ⇒ String
Show document of Arrow’s compute function.
-
.find(function_name) ⇒ Arrow::Function
Find Arrow’s compute function.
Class Method Details
.arrow_doc(function_name) ⇒ String
Show document of Arrow’s compute function.
152 153 154 155 |
# File 'lib/red_amber/helper.rb', line 152 def arrow_doc(function_name) f = find(function_name) "#{f}\n#{'-' * function_name.size}\n#{f.doc.description}" end |
.find(function_name) ⇒ Arrow::Function
Find Arrow’s compute function.
128 129 130 |
# File 'lib/red_amber/helper.rb', line 128 def find(function_name) Arrow::Function.find(function_name) end |