Module: String::StringEnvelop
- Defined in:
- lib/string_envelop.rb
Instance Method Summary collapse
- #apostrophes ⇒ Object
- #backslashs ⇒ Object
- #braces ⇒ Object
- #brackets ⇒ Object
- #chevrons ⇒ Object
- #commas ⇒ Object
- #parentheses ⇒ Object
- #quotes ⇒ Object
- #slashs ⇒ Object
- #spaces ⇒ Object
Instance Method Details
#apostrophes ⇒ Object
30 31 32 |
# File 'lib/string_envelop.rb', line 30 def apostrophes "'"<< self << "'" end |
#backslashs ⇒ Object
42 43 44 |
# File 'lib/string_envelop.rb', line 42 def backslashs "\\" << self << "\\" end |
#braces ⇒ Object
18 19 20 |
# File 'lib/string_envelop.rb', line 18 def braces '{' << self << '}' end |
#brackets ⇒ Object
14 15 16 |
# File 'lib/string_envelop.rb', line 14 def brackets "[" << self << "]" end |
#chevrons ⇒ Object
6 7 8 |
# File 'lib/string_envelop.rb', line 6 def chevrons "<" << self << ">" end |
#commas ⇒ Object
34 35 36 |
# File 'lib/string_envelop.rb', line 34 def commas "," << self << "," end |
#parentheses ⇒ Object
10 11 12 |
# File 'lib/string_envelop.rb', line 10 def parentheses "(" << sefl << ")" end |
#quotes ⇒ Object
22 23 24 |
# File 'lib/string_envelop.rb', line 22 def quotes "\"" << self << "\"" end |
#slashs ⇒ Object
38 39 40 |
# File 'lib/string_envelop.rb', line 38 def slashs "/" << self << "/" end |
#spaces ⇒ Object
26 27 28 |
# File 'lib/string_envelop.rb', line 26 def spaces ' ' << self << ' ' end |