Skip to content

Commit 5c72598

Browse files
committed
style fixes
1 parent dad2224 commit 5c72598

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/yake/support.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ def minutes = seconds * 60
110110
def seconds = self
111111
def utc = UTC.at(self)
112112

113-
alias :second :seconds
114-
alias :minute :minutes
115-
alias :hour :hours
116-
alias :day :days
117-
alias :week :weeks
113+
alias second seconds
114+
alias minute minutes
115+
alias hour hours
116+
alias day days
117+
alias week weeks
118118
end
119119

120120
##
@@ -132,12 +132,12 @@ def try(method, *args, **kwargs, &block)
132132
class String
133133
def /(path) = File.join(self, path.to_s)
134134
def camel_case = split(/[_ ]/).map(&:capitalize).join
135-
def decode64 = self.unpack1('m')
135+
def decode64 = unpack1('m')
136136
def encode64 = [self].pack('m')
137137
def md5sum = Digest::MD5.hexdigest(self)
138138
def sha1sum = Digest::SHA1.hexdigest(self)
139139
def snake_case = gsub(/([a-z])([A-Z])/, '\1_\2').gsub(/ /, '_').downcase
140-
def strict_decode64 = self.unpack1('m0')
140+
def strict_decode64 = unpack1('m0')
141141
def strict_encode64 = [self].pack('m0')
142142
def to_dynamodb = { S: self }
143143
def to_h_from_json(...) = JSON.parse(self, ...)

0 commit comments

Comments
 (0)