Class: GreaterThanEquals
- Defined in:
- lib/functions/greater_than_equals.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Attributes inherited from Base
Instance Method Summary collapse
- #arduino_code ⇒ Object
- #cycle_level_arduino_code ⇒ Object
- #param_keys ⇒ Object
- #top_level_scope_code ⇒ Object
Methods inherited from Base
#add_arduino_code, #add_cycle_level_scope, #add_top_level_scope, #append_tsortable, #buildit, #depends_on, #initialize, #resolve_frame_optimized, #top_level_scope_arduino_code
Constructor Details
This class inherits a constructor from Base
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
11 12 13 |
# File 'lib/functions/greater_than_equals.rb', line 11 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
12 13 14 |
# File 'lib/functions/greater_than_equals.rb', line 12 def right @right end |
Instance Method Details
#arduino_code ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/functions/greater_than_equals.rb', line 18 def arduino_code unless @frame_optimized [ "greater_than_equals(#{@left.name}, #{@right.name}, #{@name});" ] else [] end end |
#cycle_level_arduino_code ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/functions/greater_than_equals.rb', line 28 def cycle_level_arduino_code if @frame_optimized [ "greater_than_equals(#{@left.name}, #{@right.name}, #{@name});" ] else [] end end |
#param_keys ⇒ Object
14 15 16 |
# File 'lib/functions/greater_than_equals.rb', line 14 def param_keys [:left, :right] end |
#top_level_scope_code ⇒ Object
38 39 40 41 42 |
# File 'lib/functions/greater_than_equals.rb', line 38 def top_level_scope_code [ "long #{@name}[3];" ] end |