Skip to content

Commit

Permalink
[api] Make Node#internal_data private
Browse files Browse the repository at this point in the history
Make the method protected instead of adding an scaring comment:

 _stay away from this_

This was probably made public, as it is needed in `def ==(other)`:

```
_data == other.internal_data
```
  • Loading branch information
Ana06 committed Nov 2, 2017
1 parent f8c3120 commit 8548b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/lib/activexml/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ def find_matching(conds)
return
end

# stay away from this
def internal_data # nodoc
def internal_data
_data
end
protected :internal_data

def marshal_dump
raise "you don't want to put it in cache - never!"
Expand Down

0 comments on commit 8548b23

Please sign in to comment.