lib/pr/fields/string_field.rb in pr-0.0.1 vs lib/pr/fields/string_field.rb in pr-0.0.2
- old
+ new
@@ -1,11 +1,12 @@
module PR
module Fields
class StringField
- def initialize value = ''
- @value = value
+ def initialize value = '', options = {}
+ @value, @options = value, options
end
+ attr_reader :options
def raw
@value
end