Skip to content

Commit

Permalink
Rubocop autocorrected: Style/Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jun 5, 2015
1 parent 5ea5451 commit 1699891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .rubocop.yml
Expand Up @@ -156,11 +156,6 @@ Style/OpMethod:
Style/SingleLineBlockParams:
Enabled: false

# Offense count: 5
# Cop supports --auto-correct.
Style/Tab:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Expand Down
10 changes: 5 additions & 5 deletions src/ruby/yast/builtins.rb
Expand Up @@ -245,39 +245,39 @@ def self.tobyteblock
# builtins enclosed at Float namespace
# @deprecated all calls are deprecated
module Float
# absolute value
# absolute value
# @deprecated Use {::Float#abs} instead
def self.abs(value)
return nil if value.nil?

value.abs
end

# round upwards to integer
# round upwards to integer
# @deprecated Use {::Float#ceil} instead
def self.ceil(value)
return nil if value.nil?

value.ceil.to_f
end

# round downwards to integer
# round downwards to integer
# @deprecated Use {::Float#floor} instead
def self.floor(value)
return nil if value.nil?

value.floor.to_f
end

# power function
# power function
# @deprecated Use {::Float#**} instead
def self.pow(base, power)
return nil if base.nil? || power.nil?

base**power
end

# round to integer, towards zero
# round to integer, towards zero
# @deprecated Use {::Float#to_i} instead
def self.trunc(value)
return nil if value.nil?
Expand Down

0 comments on commit 1699891

Please sign in to comment.