Permalink
Browse files

delte

  • Loading branch information...
ZhangHanDong committed Oct 26, 2010
1 parent f3914c3 commit bb95f1cc77638424e482dd52e3ea653df7e66b2c
Showing with 0 additions and 51 deletions.
  1. +0 −2 lib/ruby_extend.rb
  2. +0 −27 lib/ruby_extend/hash_extendsions.rb
  3. +0 −22 ruby_extend.gemspec
View
@@ -1,2 +0,0 @@
-require 'ruby_extend/hash_extendsions'
-
@@ -1,27 +0,0 @@
-module RubyExtend
- module HashExtendsions
- def self.included(base)
- base.send :include, InstanceMethods
- base.send :extend, ClassMethods
- end
-
- module InstanceMethods
- def hash_reverse
- hash_new = {}
- self.each {|key,value|
- if not hash_new.has_key?(key) then hash_new[value] = key end
- }
- return hash_new
- end
- end#InstanceMethods
-
- module ClassMethods
- #TODO
- end#ClassMethods
-
- end #HashExtendsions
-end #RubyExtend
-
-class Hash
- include RubyExtend::HashExtendsions
-end
View
@@ -1,22 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = "ruby_extend"
- s.version = "0.1"
- s.platform = Gem::Platform::RUBY
- s.authors = ["blackanger"]
- s.email = ["blackanger.z@gmail.com"]
- s.homepage = "http://rubygems.org/gems/ruby_extend"
- s.summary = "Ruby Extendsions For Hash"
- s.description = "Ruby Extendsions"
-
- s.required_rubygems_version = ">= 1.3.6"
- s.rubyforge_project = "ruby_extend"
-
- s.add_development_dependency "bundler", ">= 1.0.0"
- s.add_development_dependency "rspec"
-
- s.files = `git ls-files`.split("\n")
- s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
- s.require_path = 'lib'
-end

0 comments on commit bb95f1c

Please sign in to comment.