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