class Parse::Conf::ParserHelper
Attributes
string[R]
Public Class Methods
new(string)
click to toggle source
# File lib/parse/conf/parser_helper.rb, line 6 def initialize(string) @string = string end
trim_and_remove_ugly_symbol(string)
click to toggle source
# File lib/parse/conf/parser_helper.rb, line 10 def self.trim_and_remove_ugly_symbol(string) obj = new(string) obj.trim! obj.remove_ugly_symbol! obj.string end
Public Instance Methods
remove_ugly_symbol!()
click to toggle source
# File lib/parse/conf/parser_helper.rb, line 21 def remove_ugly_symbol! string.gsub!(/(\[|\])/, '') end
trim!()
click to toggle source
# File lib/parse/conf/parser_helper.rb, line 17 def trim! string.strip! end