Sha256: 9effdea042ea70e73421e084ec2c14fdbe905ad33ce064a9e1148a0a00610d43
Contents?: true
Size: 352 Bytes
Versions: 18
Compression:
Stored size: 352 Bytes
Contents
module Rack::App::Test::SingletonMethods def rack_app(rack_app_class=nil, &constructor) in_this_context(:__rack_app_class__) { rack_app_class } in_this_context(:__rack_app_constructor__) { constructor } nil end def in_this_context(name, &block) let(name, &block) rescue NoMethodError define_method(name, &block) end end
Version data entries
18 entries across 18 versions & 1 rubygems