Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
eb760018
Commit
eb760018
authored
Apr 16, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Presenter::CocoaPod] Added eql? and hash methods
parent
965773f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
cocoa_pod.rb
lib/cocoapods/command/presenter/cocoa_pod.rb
+15
-0
No files found.
lib/cocoapods/command/presenter/cocoa_pod.rb
View file @
eb760018
...
@@ -2,6 +2,8 @@ module Pod
...
@@ -2,6 +2,8 @@ module Pod
class
Command
class
Command
class
Presenter
class
Presenter
class
CocoaPod
class
CocoaPod
attr_accessor
:set
def
initialize
(
set
)
def
initialize
(
set
)
@set
=
set
@set
=
set
end
end
...
@@ -70,6 +72,18 @@ module Pod
...
@@ -70,6 +72,18 @@ module Pod
Pod
::
Specification
::
Statistics
.
instance
.
github_forks
(
@set
)
Pod
::
Specification
::
Statistics
.
instance
.
github_forks
(
@set
)
end
end
def
==
(
other
)
self
.
class
===
other
&&
@set
==
other
.
set
end
def
eql?
(
other
)
self
.
class
===
other
&&
name
.
eql?
(
other
.
name
)
end
def
hash
name
.
hash
end
private
private
def
oxfordify
words
def
oxfordify
words
if
words
.
size
<
3
if
words
.
size
<
3
...
@@ -82,3 +96,4 @@ module Pod
...
@@ -82,3 +96,4 @@ module Pod
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment