Module: Boundy::Formatter::Sql::Domain::Plugin

Extended by:
Punchout::Punchable
Included in:
Boundy::Formatters::Sql::Domain::Anterior, Boundy::Formatters::Sql::Domain::Finite, Boundy::Formatters::Sql::Domain::Posterior
Defined in:
lib/boundy/formatter/sql/domain/plugin.rb

Class Method Summary collapse

Class Method Details

.for(obj) ⇒ Object



14
15
16
# File 'lib/boundy/formatter/sql/domain/plugin.rb', line 14

def for(obj)
  punch(obj)
end

.included(base) ⇒ Object



8
9
10
11
12
# File 'lib/boundy/formatter/sql/domain/plugin.rb', line 8

def included(base)
  Boundy.logger.info "REGISTERING #{base} AS DOMAIN FORMATTER FOR #{base.type}"
  matchable = Punchout::Matcher::Ancestry.new(base.type).punches(base)
  puncher.add(matchable)
end