Class: Boundy::Formatters::Sql::Domain::Posterior

Inherits:
Object
  • Object
show all
Includes:
Boundy::Formatter::Sql::Domain::Plugin
Defined in:
lib/boundy/formatters/sql/domain/posterior.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Boundy::Formatter::Sql::Domain::Plugin

for, included

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

.typeObject



7
8
9
# File 'lib/boundy/formatters/sql/domain/posterior.rb', line 7

def self.type
  Boundy::Domain::Posterior
end

Instance Method Details

#to_sObject



18
19
20
# File 'lib/boundy/formatters/sql/domain/posterior.rb', line 18

def to_s
  "#{@name} <= '#{@formatter.to_s}'"
end