Inversion::Template::
UnlessTag class
| Superclass | Inversion::Template::AttrTag |
| Included Modules |
Inversion ‘unless’ tag.
This tag causes a section of the template to be rendered only if its methodchain or attribute is a false value.
Syntax
<?unless attr ?>...<?end?> <?unless obj.method ?>...<?end?>
Attributes
- inverted RW
Invert the tag’s renderstate if created with the ‘not’ operator.
Public Class Methods
Create a new UnlessTag.
Public Instance Methods
Render the tag’s contents if the condition is true, or any else or elsif sections if the condition isn’t true.