Rubocop: Using single-quotes properly
This commit is contained in:
@@ -32,7 +32,7 @@ module Squib
|
||||
(s.first_row+1).upto(s.last_row) do |row|
|
||||
cell = s.cell(row,col)
|
||||
# Roo hack for avoiding unnecessary .0's on whole integers
|
||||
cell = s.excelx_value(row,col) if s.excelx_type(row,col) == [:numeric_or_formula, "General"]
|
||||
cell = s.excelx_value(row,col) if s.excelx_type(row,col) == [:numeric_or_formula, 'General']
|
||||
data[header] << cell
|
||||
end#row
|
||||
end#col
|
||||
|
||||
@@ -20,7 +20,7 @@ module Squib
|
||||
def png(opts = {})
|
||||
opts = needs(opts, [:range, :files, :x, :y, :alpha, :layout, :blend])
|
||||
Dir.chdir(@img_dir) do
|
||||
@progress_bar.start("Loading PNG(s)", opts[:range].size) do |bar|
|
||||
@progress_bar.start('Loading PNG(s)', opts[:range].size) do |bar|
|
||||
opts[:range].each do |i|
|
||||
@cards[i].png(opts[:file][i], opts[:x][i], opts[:y][i], opts[:alpha][i], opts[:blend][i])
|
||||
bar.increment
|
||||
@@ -51,7 +51,7 @@ module Squib
|
||||
def svg(opts = {})
|
||||
p = needs(opts,[:range, :files, :svgid, :force_svgid, :x, :y, :width, :height, :layout, :alpha, :blend])
|
||||
Dir.chdir(@img_dir) do
|
||||
@progress_bar.start("Loading SVG(s)", p[:range].size) do |bar|
|
||||
@progress_bar.start('Loading SVG(s)', p[:range].size) do |bar|
|
||||
p[:range].each do |i|
|
||||
unless p[:force_id][i] && p[:id][i].to_s.empty?
|
||||
@cards[i].svg(p[:file][i], p[:id][i], p[:x][i], p[:y][i],
|
||||
|
||||
@@ -6,7 +6,7 @@ module Squib
|
||||
# @example
|
||||
# inches(2.5) # 750 (for default Deck::dpi of 300)
|
||||
#
|
||||
# @param [Decimal] n, the number of inches
|
||||
# @param n [Decimal], the number of inches
|
||||
# @return [Decimal] the number of pixels, according to the deck's DPI
|
||||
# @api public
|
||||
def inches(n)
|
||||
|
||||
Reference in New Issue
Block a user