# File lib/gon.rb, line 36 def method_missing(method, *args, &block) if method.to_s =~ /=$/ if public_method_name?(method) raise "You can't use Gon public methods for storing data: #{method}" end if self == Gon && !current_gon raise 'Assign request-specific gon variables only through `gon` helper, not through Gon constant' end set_variable(method.to_s.delete('='), args[0]) else get_variable(method.to_s) end end