Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit b01e791

Browse files
Update the me method for general use
1 parent 953efa8 commit b01e791

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ruby/irbrc.symlink

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Object
1515
def local_methods(obj = self)
1616
(obj.methods - obj.class.superclass.instance_methods).sort
1717
end
18-
18+
1919
# print documentation
2020
#
2121
# ri 'Array#pop'
@@ -32,7 +32,7 @@ class Object
3232
end
3333

3434
def me
35-
User.find_by_login('holman')
35+
User.find_by_login(ENV['USER'].strip)
3636
end
3737

3838
def r

0 commit comments

Comments
 (0)