Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (38 sloc) 0.569 kB
module Twitter
module Version
module_function
# @return [Integer]
def major
6
end
# @return [Integer]
def minor
0
end
# @return [Integer]
def patch
0
end
# @return [Integer, NilClass]
def pre
nil
end
# @return [Hash]
def to_h
{
major: major,
minor: minor,
patch: patch,
pre: pre,
}
end
# @return [Array]
def to_a
to_h.values.compact
end
# @return [String]
def to_s
to_a.join('.')
end
end
end
Jump to Line
Something went wrong with that request. Please try again.