Class: Bumpspark::Graph

Inherits:
Object
  • Object
show all
Includes:
Formats::PNG
Defined in:
lib/bumpspark/graph.rb

Constant Summary

Constants included from Formats::PNG

Formats::PNG::BLACK, Formats::PNG::GREY, Formats::PNG::HEADER, Formats::PNG::RED

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Formats::PNG

#to_png

Constructor Details

#initialize(numbers) ⇒ Graph

Returns a new instance of Graph.



8
9
10
# File 'lib/bumpspark/graph.rb', line 8

def initialize(numbers)
  @numbers = numbers
end

Instance Attribute Details

#numbersObject (readonly)

Returns the value of attribute numbers.



7
8
9
# File 'lib/bumpspark/graph.rb', line 7

def numbers
  @numbers
end