lib/macros4cuke/templating/section.rb in macros4cuke-0.5.15 vs lib/macros4cuke/templating/section.rb in macros4cuke-0.5.16

- old
+ new

@@ -40,22 +40,20 @@ end return all_vars.flatten.uniq end - # Render the placeholder given the passed arguments. # This method has the same signature as the {Engine#render} method. # @return [String] The text value assigned to the placeholder. # Returns an empty string when no value is assigned to the placeholder. def render(_, _) msg = "Method Section.#{__method__} must be implemented in subclass." raise(NotImplementedError, msg) end end # class - # A specialized section in a template for which its rendition # depends on the (in)existence of an actual value bound to the variable name. class ConditionalSection < Section # A boolean that indicates whether the rendition condition is # the existence of a value for the variable (true) @@ -85,10 +83,9 @@ result = '' end return result end - # @return [String] The original text representation of the tag. def to_s() return "<?#{name}>" end