Class: NaiveCalculator::Plot

Inherits:
Struct
  • Object
show all
Defined in:
lib/naive_calculator/plot.rb

Instance Attribute Summary collapse

Instance Attribute Details

#functionObject

Returns the value of attribute function

Returns:

  • (Object)

    the current value of function



2
3
4
# File 'lib/naive_calculator/plot.rb', line 2

def function
  @function
end

#max_xObject

Returns the value of attribute max_x

Returns:

  • (Object)

    the current value of max_x



2
3
4
# File 'lib/naive_calculator/plot.rb', line 2

def max_x
  @max_x
end

#min_xObject

Returns the value of attribute min_x

Returns:

  • (Object)

    the current value of min_x



2
3
4
# File 'lib/naive_calculator/plot.rb', line 2

def min_x
  @min_x
end