lib/bindata/choice.rb in bindata-0.8.0 vs lib/bindata/choice.rb in bindata-0.8.1

- old
+ new

@@ -95,12 +95,12 @@ # Override to include selected data object. def respond_to?(symbol, include_private = false) super || the_choice.respond_to?(symbol, include_private) end - def method_missing(symbol, *args) + def method_missing(symbol, *args, &block) if the_choice.respond_to?(symbol) - the_choice.__send__(symbol, *args) + the_choice.__send__(symbol, *args, &block) else super end end