Class: Gm::Notepad::TableEntry::OrLess
- Defined in:
- lib/gm/notepad/table_entry.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#floor ⇒ Object
readonly
Returns the value of attribute floor.
Attributes inherited from Base
Instance Method Summary collapse
- #include?(index) ⇒ Boolean
-
#initialize(floor:, **kwargs) ⇒ OrLess
constructor
A new instance of OrLess.
Methods inherited from Base
#<=>, #entry, #lookup, #lookup_range, #to_s
Constructor Details
#initialize(floor:, **kwargs) ⇒ OrLess
Returns a new instance of OrLess.
74 75 76 77 78 |
# File 'lib/gm/notepad/table_entry.rb', line 74 def initialize(floor:, **kwargs) super @floor = floor table.set_or_less_entry(self) end |
Instance Attribute Details
#floor ⇒ Object (readonly)
Returns the value of attribute floor.
79 80 81 |
# File 'lib/gm/notepad/table_entry.rb', line 79 def floor @floor end |
Instance Method Details
#include?(index) ⇒ Boolean
81 82 83 |
# File 'lib/gm/notepad/table_entry.rb', line 81 def include?(index) floor.to_i >= index.to_i end |