With locations across Canada, Mr. Rooter Plumbing is your local source for backflow preventer installation, repair, and replacement. Think of backflow prevention as inexpensive insurance; you’ll never know when you need it, but when you do, you’ll be glad you have reduced the chances of contamination of your home water supply. Protect your home and gain peace of mind. Give Mr. Rooter a call or request an estimate online.

ERB is useful for any generic templating situation. Note that in this example, we use the convenient “% at start of line” tag, and we quote the template literally with %q{...} to avoid trouble with the backslash.

ERB (or Ruby code generated by ERB) returns a string in the same character encoding as the input string. When the input string has a magic comment, however, it returns a string in the encoding specified by the magic comment.

In most cases, several components of backflow preventers can be replaced, such as rubber gaskets. This is a cost-effective repair option. But if the backflow preventer valve is very old or corroded, these repairs may not be possible. Your local Mr. Rooter Plumbing will assess the system to see if a repair is feasible.

Residential backflow preventers are designed to keep contaminated water from flowing into your home’s potable water supply. Without an operational backflow valve, sudden changes in water pressure can allow contaminated water to flow backward in the pipes, bringing harmful substances with it. Your local Mr. Rooter® Plumbing performs all backflow preventer valve services, including installation, repair, testing, and replacement.

Copyright ©2024 Mr. Rooter. All rights reserved. This information is not intended as an offer to sell, or the solicitation of an offer to buy, a franchise. It is for information purposes only. Mr. Rooter is a registered trademark of Mr. Rooter LLC

How can you tell whether it’s time to have a backflow preventer replaced? If the device needs extensive repairs, replacing it may be more economical and will get your water service back faster. Old and outdated backflow preventer valves are more likely to have more repair needs in the future, so keep your valve’s age in mind when making this decision.

© 2024 The Dwyer Group Canada, Inc. d/b/a Neighbourly. All rights reserved. Neighbourly is a registered trademark of Neighborly Assetco LLC. This site and all of its content is protected under applicable law, including laws of Canada and other countries. Each location is independently owned and operated. Territorial, provincial, and local laws may impact the services this independently owned and operated franchise location may perform at this time. Please contact the franchise location for additional information.

When you notice water coming out of a backflow valve, the first thing to do is turn off the water main to limit water contamination and property damage. Then call your local Mr. Rooter to inspect and repair the valve.

Executes the generated ERB code to produce a completed template, returning the results of that code. (See ERB::new for details on how this process can be affected by safe_level.)

ERB is often used in .rhtml files (HTML with embedded Ruby). Notice the need in this example to provide a special binding when the template is run, so that the instance variables in the Product object can be resolved.

eoutvar can be used to set the name of the variable ERB will build up its output in. This is useful when you need to run multiple ERB templates through the same binding and/or when you want to control where output ends up. Pass the name of the variable to be used inside a String.

© 2024 The Dwyer Group Canada, Inc. d/b/a Neighbourly. All rights reserved. Neighbourly is a registered trademark of Neighborly Assetco LLC. This site and all of its content is protected under applicable law, including laws of Canada and other countries. Each location is independently owned and operated. Territorial, provincial, and local laws may impact the services this independently owned and operated franchise location may perform at this time. Please contact the franchise location for additional information.

Searching through dozens of home service providers is a thing of the past. Rely on Neighbourly’s national network of trusted, local home service professionals for all your home service needs.

Sets optional filename and line number that will be used in ERB code evaluation and error reporting. See also filename= and lineno=

After completing a repair service, we can also perform backflow prevention device testing to ensure the fix was effective.

Depending on the type of device, testing can be as simple as a visual inspection on some devices. Testing some devices requires the use of a precision-reduced pressure valve test tool. However, we recommend having your local plumber perform backflow prevention testing and explain the best solutions for any problems identified.

Can be used to set eoutvar as described in ERB::new. It's probably easier to just use the constructor though, since calling this method requires the setup of an ERB compiler object.

If trim_mode is passed a String containing one or more of the following modifiers, ERB will adjust its code generation as listed:

Image

A backflow preventer is most often installed where municipal or well water enters the home. Another popular spot for a backflow preventer is at an irrigation system’s intake point.

ERB provides an easy to use but powerful templating system for Ruby. Using ERB, actual Ruby code can be added to any plain text document for the purposes of generating document information details and/or flow control.

There are a variety of templating solutions available in various Ruby projects. For example, RDoc, distributed with Ruby, uses its own template engine, which can be reused elsewhere.