Skip to content

Commit

Permalink
[ruby][raindrops] fix splatter memo variables name. Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofnds committed Jan 13, 2020
1 parent ad94368 commit 8873114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ruby/raindrops/raindrops.rb
Expand Up @@ -19,7 +19,7 @@ def to_s

attr_reader :number, :rules

def initialize(number, rules=RULES)
def initialize(number, rules = RULES)
@number = number
@rules = rules
end
Expand All @@ -29,7 +29,7 @@ def factors
end

def splatter
@splatters ||= factors.map { rules[_1] }.join
@splatter ||= factors.map { rules[_1] }.join
end

def sound
Expand Down

0 comments on commit 8873114

Please sign in to comment.