class Deklarativna::NestingRenderable

Public Class

This class is intended to render tags following the ‘<tagname></tagname>’ pattern

Attributes

content[RW]

Public Instance Methods

_proc_call() click to toggle source
# File lib/deklarativna_core.rb, line 43
def _proc_call
  if @content.call.respond_to? :join
    return @content.call.join("")
  end
  @content.call
end
proc_call() click to toggle source
# File lib/deklarativna_core.rb, line 36
def proc_call
  if @content.nil?
    return ""
  end
  _proc_call
end
to_s() click to toggle source
# File lib/deklarativna_core.rb, line 32
def to_s
  "<#{@tag_name}#{render_attributes}>#{proc_call}</#{@tag_name}>"
end