Permalink
Browse files

Include ackrc

  • Loading branch information...
aizatto committed May 26, 2010
1 parent 50a0ae7 commit 547f85dcfafaf9210ebc62c793f91a3bfb94c374
Showing with 33 additions and 0 deletions.
  1. +7 −0 ackrc
  2. +26 −0 irbrc
View
7 ackrc
@@ -0,0 +1,7 @@
+--type-add
+xml=builder
+#ruby=haml
+#html=erb
+--smart-case
+--nosql
+--ignore-dir=wp-content
View
26 irbrc
@@ -0,0 +1,26 @@
+# load rubygems and wirble
+require 'rubygems' rescue nil
+require 'wirble'
+
+# load wirble
+Wirble.init
+Wirble.colorize
+
+class Object
+ def methods_with_sort(filter = nil)
+ methods = methods_without_sort
+ if filter
+ filter = Regexp.new(filter.to_s, true) unless filter.is_a? Regexp
+ methods = methods.select { |method| method =~ filter }
+ end
+ methods.sort
+ end
+ alias_method :methods_without_sort, :methods
+ alias_method :methods, :methods_with_sort
+
+ def instance_variables_with_sort
+ instance_variables_without_sort.sort
+ end
+ alias_method :instance_variables_without_sort, :instance_variables
+ alias_method :instance_variables, :instance_variables_with_sort
+end

0 comments on commit 547f85d

Please sign in to comment.