Skip to content

Commit

Permalink
Include ackrc
Browse files Browse the repository at this point in the history
  • Loading branch information
aizatto committed May 26, 2010
1 parent 50a0ae7 commit 547f85d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ackrc
@@ -0,0 +1,7 @@
--type-add
xml=builder
#ruby=haml
#html=erb
--smart-case
--nosql
--ignore-dir=wp-content
26 changes: 26 additions & 0 deletions 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.