class Jinda::Helpers::String

Add method to ruby class String ###############################

Public Instance Methods

comment?() click to toggle source
# File lib/jinda/helpers.rb, line 577
def comment?
  self[0]=='#'
  # self[0]==35 # check if first char is #
end
to_code() click to toggle source
# File lib/jinda/helpers.rb, line 581
def to_code
  s= self.dup
  s.downcase.strip.gsub(' ','_').gsub(/[^#_\/a-zA-Z0-9]/,'')
end