# File lib/gherkin/formatter/json_formatter.rb, line 15 def initialize(io) raise "Must be writeable" unless io.respond_to?(:write) @io = io @feature_hashes = [] @current_step_or_hook = nil end