Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
comment on why override Dash#[]
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 6, 2010
1 parent 8e529ac commit 0bbc22c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mingo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def initialize(obj = nil)
end
end

# overwrite these to avoid checking for declared properties
# (which is default behavior in Dash)
def [](property)
_regular_reader(property.to_s)
end
Expand Down

0 comments on commit 0bbc22c

Please sign in to comment.