core/time.rb in opal-0.3.29 vs core/time.rb in opal-0.3.30
- old
+ new
@@ -54,10 +54,12 @@
`#{self}.getDay() === 5`
end
alias_native :hour, :getHours
+ alias_native :inspect, :toString
+
alias mday day
alias_native :min, :getMinutes
def mon
@@ -89,9 +91,11 @@
end
def to_i
`parseInt(#{self}.getTime() / 1000)`
end
+
+ alias to_s inspect
def tuesday?
`#{self}.getDay() === 2`
end
\ No newline at end of file