Class: Atig::OFilter::Footer

Inherits:
Object
  • Object
show all
Defined in:
lib/atig/ofilter/footer.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Footer

Returns a new instance of Footer.



6
7
8
# File 'lib/atig/ofilter/footer.rb', line 6

def initialize(context)
  @opts = context.opts
end

Instance Method Details

#call(q) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/atig/ofilter/footer.rb', line 10

def call(q)
  if @opts.footer && !@opts.footer.empty? then
    q.merge :status => "#{q[:status]} #{@opts.footer}"
  else
    q
  end

end