Skip to content

Commit 1da4be8

Browse files
author
Ary Borenszweig
committed
Merge pull request crystal-lang#810 from yui-knk/fix/alias
Replace `alias_method` with implementaion
2 parents c91f98f + 563e920 commit 1da4be8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/time/time_span.cr

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ struct TimeSpan
129129
ticks.to_f / TicksPerSecond
130130
end
131131

132-
alias_method to_f, total_seconds
132+
def to_f
133+
total_seconds
134+
end
133135

134136
def to_i
135137
ticks / TicksPerSecond

0 commit comments

Comments
 (0)