Class: Boundy::Formatters::Sql::Domain::Anterior
- Inherits:
-
Object
- Object
- Boundy::Formatters::Sql::Domain::Anterior
- Includes:
- Boundy::Formatter::Sql::Domain::Plugin
- Defined in:
- lib/boundy/formatters/sql/domain/anterior.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain, name) ⇒ Anterior
constructor
A new instance of Anterior.
- #to_s ⇒ Object
Methods included from Boundy::Formatter::Sql::Domain::Plugin
Constructor Details
#initialize(domain, name) ⇒ Anterior
Returns a new instance of Anterior.
13 14 15 16 |
# File 'lib/boundy/formatters/sql/domain/anterior.rb', line 13 def initialize(domain, name) @name = name @formatter = Boundy::Formatter::Sql.new(domain.from, name) end |
Class Method Details
.type ⇒ Object
7 8 9 |
# File 'lib/boundy/formatters/sql/domain/anterior.rb', line 7 def self.type Boundy::Domain::Anterior end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/boundy/formatters/sql/domain/anterior.rb', line 18 def to_s "#{@name} >= '#{@formatter.to_s}'" end |