Class: String
Instance Method Summary collapse
Instance Method Details
#ivar ⇒ Object
8 9 10 |
# File 'lib/r_kit/utility/string_extend.rb', line 8 def ivar "@#{ self }" end |
#lvar ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/r_kit/utility/string_extend.rb', line 12 def lvar if self =~ /^@/ self[1..-1] else self end end |
#to_boolean ⇒ Object
3 4 5 |
# File 'lib/r_kit/utility/string_extend.rb', line 3 def to_boolean !!(self =~ /^(true|t|yes|y|1)$/i) end |