Class: Gm::Notepad::TableEntry::OrMore
- Defined in:
- lib/gm/notepad/table_entry.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#ceiling ⇒ Object
readonly
Returns the value of attribute ceiling.
Attributes inherited from Base
Instance Method Summary collapse
- #include?(index) ⇒ Boolean
-
#initialize(ceiling:, **kwargs) ⇒ OrMore
constructor
A new instance of OrMore.
Methods inherited from Base
#<=>, #entry, #lookup, #lookup_range, #to_s
Constructor Details
#initialize(ceiling:, **kwargs) ⇒ OrMore
Returns a new instance of OrMore.
86 87 88 89 90 |
# File 'lib/gm/notepad/table_entry.rb', line 86 def initialize(ceiling:, **kwargs) super @ceiling = ceiling table.set_or_more_entry(self) end |
Instance Attribute Details
#ceiling ⇒ Object (readonly)
Returns the value of attribute ceiling.
91 92 93 |
# File 'lib/gm/notepad/table_entry.rb', line 91 def ceiling @ceiling end |
Instance Method Details
#include?(index) ⇒ Boolean
93 94 95 |
# File 'lib/gm/notepad/table_entry.rb', line 93 def include?(index) ceiling.to_i <= index.to_i end |