Make #value on Field readable

This commit is contained in:
Bryan Helmkamp 2008-11-14 11:41:56 -05:00
parent 2603ad405b
commit 3e70fd24eb
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ module Webrat
raise "Invalid field element: #{element.inspect}" raise "Invalid field element: #{element.inspect}"
end end
attr_reader :value
def initialize(form, element) def initialize(form, element)
@form = form @form = form
@element = element @element = element