You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/rdf/model/literal/decimal.rb
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -63,9 +63,9 @@ def abs
63
63
##
64
64
# Returns the number with no fractional part that is closest to the argument. If there are two such numbers, then the one that is closest to positive infinity is returned. An error is raised if arg is not a numeric value.
Copy file name to clipboardExpand all lines: lib/rdf/model/literal/double.rb
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -142,33 +142,33 @@ def infinite?
142
142
end
143
143
144
144
##
145
-
# Returns the smallest number greater than or equal to `self`.
145
+
# Returns the smallest integer greater than or equal to `self`.
146
146
#
147
147
# @example
148
148
# RDF::Literal(1.2).ceil #=> RDF::Literal(2)
149
149
# RDF::Literal(-1.2).ceil #=> RDF::Literal(-1)
150
150
# RDF::Literal(2.0).ceil #=> RDF::Literal(2)
151
151
# RDF::Literal(-2.0).ceil #=> RDF::Literal(-2)
152
152
#
153
-
# @return [RDF::Literal]
153
+
# @return [RDF::Literal::Integer]
154
154
# @since 0.2.3
155
155
defceil
156
-
self.class.new(to_f.ceil)
156
+
RDF::Literal::Integer.new(to_f.ceil)
157
157
end
158
158
159
159
##
160
-
# Returns the largest number less than or equal to `self`.
160
+
# Returns the largest integer less than or equal to `self`.
161
161
#
162
162
# @example
163
163
# RDF::Literal(1.2).floor #=> RDF::Literal(1)
164
164
# RDF::Literal(-1.2).floor #=> RDF::Literal(-2)
165
165
# RDF::Literal(2.0).floor #=> RDF::Literal(2)
166
166
# RDF::Literal(-2.0).floor #=> RDF::Literal(-2)
167
167
#
168
-
# @return [RDF::Literal]
168
+
# @return [RDF::Literal::Integer]
169
169
# @since 0.2.3
170
170
deffloor
171
-
self.class.new(to_f.floor)
171
+
RDF::Literal::Integer.new(to_f.floor)
172
172
end
173
173
174
174
##
@@ -181,11 +181,11 @@ def abs
181
181
end
182
182
183
183
##
184
-
# Returns the number with no fractional part that is closest to the argument. If there are two such numbers, then the one that is closest to positive infinity is returned. An error is raised if arg is not a numeric value.
184
+
# Returns the integer with no fractional part that is closest to the argument. If there are two such numbers, then the one that is closest to positive infinity is returned. An error is raised if arg is not a numeric value.
0 commit comments