Sha256: 251fcc53d7ac25372646ffba69debff44a92dca0a74ba6db4e330454023a66ca

Contents?: true

Size: 316 Bytes

Versions: 24

Compression:

Stored size: 316 Bytes

Contents

    # Add method to ruby class String
    # ###############################
    class String
      def comment?
        self[0]=='#'
        # self[0]==35 # check if first char is #
      end
      def to_code
        s= self.dup
        s.downcase.strip.gsub(' ','_').gsub(/[^#_\/a-zA-Z0-9]/,'')
      end
    end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
jinda-0.8.0 lib/jinda/gen_class.rb
jinda-0.7.7.4 lib/jinda/gen_class.rb
jinda-0.7.7.3 lib/jinda/gen_class.rb
jinda-0.7.7.2 lib/jinda/gen_class.rb
jinda-0.7.7.1 lib/jinda/gen_class.rb
jinda_mind-1.0.0 lib/jinda/gen_class.rb
jinda-0.7.7 lib/jinda/gen_class.rb
jinda-0.7.6 lib/jinda/gen_class.rb
jinda-0.7.5.5 lib/jinda/gen_class.rb
jinda-0.7.5.4 lib/jinda/gen_class.rb
jinda-0.7.5.3 lib/jinda/gen_class.rb
jinda-0.7.5.2 lib/jinda/gen_class.rb
jinda-0.7.5.0 lib/jinda/gen_class.rb
jinda-0.7.3 lib/jinda/gen_class.rb
jinda-0.7.2 lib/jinda/gen_class.rb
jinda-0.7.1 lib/jinda/gen_class.rb
jinda-0.7.0.4 lib/jinda/gen_class.rb
jinda-0.7.0.3 lib/jinda/gen_class.rb
jinda-0.7.0.2 lib/jinda/gen_class.rb
jinda-0.7.0.1 lib/jinda/gen_class.rb