-
Sean Doyle authored
When the block argument is omitted, the decorated Object instance is returned: ```ruby # app/helpers/my_styled_helpers.rb module MyStyledHelpers def styled with_options style: "color: red;" end end # styled.link_to "I'm red", "/" # #=> <a href="/" style="color: red;">I'm red</a> # styled.button_tag "I'm red too!" # #=> <button style="color: red;">I'm red too!</button> ```
Sean Doyle authoredWhen the block argument is omitted, the decorated Object instance is returned: ```ruby # app/helpers/my_styled_helpers.rb module MyStyledHelpers def styled with_options style: "color: red;" end end # styled.link_to "I'm red", "/" # #=> <a href="/" style="color: red;">I'm red</a> # styled.button_tag "I'm red too!" # #=> <button style="color: red;">I'm red too!</button> ```
Loading