Skip to content

Commit a996521

Browse files
r7kamuraglebm
authored andcommittedAug 7, 2023
Replace Fixnum with Integer
1 parent ee2c42b commit a996521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tasks/converter/less_conversion.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -730,13 +730,13 @@ def open_brace_pos(css, from, depth = 0)
730730
from - s.pos + 1
731731
end
732732

733-
# insert substitutions into text at positions (Range or Fixnum)
733+
# insert substitutions into text at positions (Range or Integer)
734734
# substitutions can be passed as array or as yields from the &block called with |substring, position, text|
735735
# position is a range (begin..end)
736736
def replace_substrings_at(text, positions, replacements = nil, &block)
737737
offset = 0
738738
positions.each_with_index do |p, i|
739-
p = (p...p) if p.is_a?(Fixnum)
739+
p = (p...p) if p.is_a?(Integer)
740740
from = p.begin + offset
741741
to = p.end + offset
742742
p = p.exclude_end? ? (from...to) : (from..to)

0 commit comments

Comments
 (0)
Please sign in to comment.