Skip to content

Commit

Permalink
Merge pull request #17 from chrisroberts/enhancement/values-access
Browse files Browse the repository at this point in the history
Use accessor method when accessing the values hash
  • Loading branch information
aphyr committed Nov 30, 2013
2 parents bfce30e + cc58760 commit 2f3dac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/risky.rb
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,12 @@ def ===(object)

# Access the values hash.
def [](k)
@values[k]
values[k]
end

# Access the values hash.
def []=(k, v)
@values[k] = v
values[k] = v
end

def after_create
Expand Down

0 comments on commit 2f3dac3

Please sign in to comment.