Method: Graph#array_slicer
- Defined in:
- lib/html_compilation/classes/builders/graph.rb
#array_slicer(values) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/html_compilation/classes/builders/graph.rb', line 43 def array_slicer(values) if values.length > graph_length output = values[((values.length - 1) - (graph_length - 1))..(values.length - 1)] else output = values end output end |