Module: Represent::Adapter

Defined in:
lib/represent/adapter.rb

Instance Method Summary collapse

Instance Method Details

#render_tag(name, *args, &block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/represent/adapter.rb', line 6

def render_tag(name, *args, &block)
  if self.respond_to?("is_haml?".to_sym) and is_haml?
    haml_tag(name.to_sym, options)
  else
    tag(name.to_sym)
  end
end