module OasRails::Spec::Hashable

def public_instance_variables

def public_instance_variables
  instance_variables.select do |var|
    method_name = var.to_s.delete('@')
    respond_to?(method_name) || respond_to?("#{method_name}=")
  end
end