module Gm::Notepad::TableEntry
Constants
- OR_LESS_REGEXP
- OR_MORE_REGEXP
Public Class Methods
new(line:, table:, **kwargs)
click to toggle source
# File lib/gm/notepad/table_entry.rb, line 10 def self.new(line:, table:, **kwargs) if match = line.match(OR_LESS_REGEXP) OrLess.new(line: line, table: table, floor: match[:floor], **kwargs) elsif match = line.match(OR_MORE_REGEXP) OrMore.new(line: line, table: table, ceiling: match[:ceiling], **kwargs) else Base.new(line: line, table: table, **kwargs) end end