Module: Embrace::StringMethods
- Defined in:
- lib/embrace/string_methods.rb
Instance Method Summary collapse
- #brace(style: BRACES, **options) ⇒ Object
- #bracket(style: BRACKETS, **options) ⇒ Object
- #double_quote(style: DOUBLE_QUOTES, **options) ⇒ Object (also: #quote)
- #parenthesize(style: PARENTHESES, **options) ⇒ Object
- #single_quote(style: SINGLE_QUOTES, **options) ⇒ Object
Instance Method Details
#brace(style: BRACES, **options) ⇒ Object
11 12 13 |
# File 'lib/embrace/string_methods.rb', line 11 def brace(style: BRACES, **) Embrace.bracket(self, style: style, **) end |
#bracket(style: BRACKETS, **options) ⇒ Object
3 4 5 |
# File 'lib/embrace/string_methods.rb', line 3 def bracket(style: BRACKETS, **) Embrace.bracket(self, style: style, **) end |
#double_quote(style: DOUBLE_QUOTES, **options) ⇒ Object Also known as: quote
19 20 21 |
# File 'lib/embrace/string_methods.rb', line 19 def double_quote(style: DOUBLE_QUOTES, **) Embrace.bracket(self, style: style, **) end |
#parenthesize(style: PARENTHESES, **options) ⇒ Object
7 8 9 |
# File 'lib/embrace/string_methods.rb', line 7 def parenthesize(style: PARENTHESES, **) Embrace.bracket(self, style: style, **) end |
#single_quote(style: SINGLE_QUOTES, **options) ⇒ Object
15 16 17 |
# File 'lib/embrace/string_methods.rb', line 15 def single_quote(style: SINGLE_QUOTES, **) Embrace.bracket(self, style: style, **) end |