Skip to content

Commit

Permalink
Add Node#file_input? back. Passes 29 additional tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Dec 16, 2010
1 parent 5e26715 commit cd5aab3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/akephalos/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ def multiple_select?
!self[:multiple].nil?
end

# @return [true, false] whether the node is a file input
def file_input?
tag_name == "input" && @_node.getAttribute("type") == "file"
end


# Unselect an option.
#
# @return [true, false] whether the unselection was successful
Expand Down

0 comments on commit cd5aab3

Please sign in to comment.