Module: ExpressTemplates::Components::Capabilities::OverrideMethods

Defined in:
lib/express_templates/components/capabilities/suppressable.rb

Instance Method Summary collapse

Instance Method Details

#build(*args) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/express_templates/components/capabilities/suppressable.rb', line 48

def build(*args)
  if reverse_suppression_condition
    super(*args) unless self.send(suppression_condition_name)
  else
    super(*args) if self.send(suppression_condition_name)
  end
end

#end_tagObject



40
41
42
43
44
45
46
# File 'lib/express_templates/components/capabilities/suppressable.rb', line 40

def end_tag
  if reverse_suppression_condition
    super unless self.send(suppression_condition_name)
  else
    super if self.send(suppression_condition_name)
  end
end

#start_tagObject



32
33
34
35
36
37
38
# File 'lib/express_templates/components/capabilities/suppressable.rb', line 32

def start_tag
  if reverse_suppression_condition
    super unless self.send(suppression_condition_name)
  else
    super if self.send(suppression_condition_name)
  end
end