Class: Eg::Calculator
Constant Summary
collapse
- @@metadata =
{ 'x()' => Fit::ScientificDouble, 'y()' => Fit::ScientificDouble,
'z()' => Fit::ScientificDouble, 't()' => Fit::ScientificDouble }
- @@hp =
Hp35.new
Constants inherited
from Fit::Fixture
Fit::Fixture::GRAY, Fit::Fixture::GREEN, Fit::Fixture::RED, Fit::Fixture::YELLOW
Instance Attribute Summary collapse
Attributes inherited from Fit::Fixture
#args, #counts, #listener, #summary
Instance Method Summary
collapse
#check, #do_cell, #do_row, #do_rows
camel, #check, #do_cell, #do_cells, #do_row, #do_rows, #do_table, #do_tables, #error, escape, #exception, #find_class, #fixture_name, #get_args_for_table, #get_linked_fixture_with_args, gray, #ignore, #info, #initialize, #interpret_following_tables, #interpret_tables, label, metadata, #parse, #right, #total_errors, #totals, #wrong
Constructor Details
This class inherits a constructor from Fit::Fixture
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
54
55
56
|
# File 'lib/eg/calculator.rb', line 54
def key
@key
end
|
#volts ⇒ Object
Returns the value of attribute volts.
54
55
56
|
# File 'lib/eg/calculator.rb', line 54
def volts
@volts
end
|
Instance Method Details
#execute ⇒ Object
62
|
# File 'lib/eg/calculator.rb', line 62
def execute; @@hp.key(key) unless key.nil?; end
|
#flash ⇒ Object
59
|
# File 'lib/eg/calculator.rb', line 59
def flash; false; end
|
#points ⇒ Object
58
|
# File 'lib/eg/calculator.rb', line 58
def points; false; end
|
#reset ⇒ Object
61
|
# File 'lib/eg/calculator.rb', line 61
def reset; key = nil; end
|
#watts ⇒ Object
60
|
# File 'lib/eg/calculator.rb', line 60
def watts; 0.5; end
|