Skip to content

Commit

Permalink
dom/node_set: add #respond_to_missing?
Browse files Browse the repository at this point in the history
meh committed Aug 26, 2015
1 parent 84913ce commit b5050eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opal/browser/dom/node_set.rb
Original file line number Diff line number Diff line change
@@ -35,6 +35,10 @@ def method_missing(name, *args, &block)
end
end

def respond_to_missing?(name, *)
@literal.respond_to?(name)
end

# Get the first node matching the given CSS selectors.
#
# @param rules [Array<String>] the CSS selectors to match with

0 comments on commit b5050eb

Please sign in to comment.