Home
last modified time | relevance | path

Searched refs:const_set (Results 1 – 25 of 135) sorted by relevance

123456

/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/module/
H A Dconst_set_spec.rb6 ConstantSpecs.const_set :CS_CONST401, :const401
9 ConstantSpecs.const_set "CS_CONST402", :const402
14 ConstantSpecs.const_set(:CS_CONST403, :const403).should == :const403
19 ConstantSpecs.const_set(:CS_CONST1000, m)
25 a.const_set :B, b
36 Object.const_set :ModuleSpecs_CS3, a
44 lambda { ConstantSpecs.const_set "name", 1 }.should raise_error(NameError)
55 ConstantSpecs.const_set("CS_CONST404", :const404).should == :const404
63 ConstantSpecs.const_set(name, :const405).should == :const405
69 lambda { ConstantSpecs.const_set name, 1 }.should raise_error(TypeError)
[all …]
H A Dprivate_constant_spec.rb6 cls1.const_set :Foo, true
16 cls.const_set :Foo, true
24 mod.const_set :Foo, true
25 mod.const_set :Bar, true
H A Dpublic_constant_spec.rb6 cls1.const_set :Foo, true
16 cls.const_set :Foo, true
27 mod.const_set :Foo, true
28 mod.const_set :Bar, true
/dports/lang/ruby26/ruby-2.6.9/spec/mspec/spec/guards/
H A Dbug_spec.rb18 Object.const_set :RUBY_ENGINE, 'ruby'
22 Object.const_set :RUBY_ENGINE, @ruby_engine
81 Object.const_set :RUBY_VERSION, '1.8.6'
82 Object.const_set :RUBY_ENGINE, 'jruby'
86 Object.const_set :RUBY_VERSION, @ruby_version
87 Object.const_set :RUBY_ENGINE, @ruby_engine
/dports/lang/ruby26/ruby-2.6.9/test/mkmf/
H A Dbase.rb92 const_set(:CONFIG, rbconfig)
94 const_set(:MAKEFILE_CONFIG, mkconfig)
98 const_set(:CONFIG, mkconfig)
115 const_set(:CONFIG, rbconfig0)
117 const_set(:MAKEFILE_CONFIG, mkconfig0)
121 const_set(:CONFIG, mkconfig0)
/dports/math/cvc4/CVC4-1.7/test/unit/base/
H A Dmap_util_black.h120 const std::set<string> const_set{"entry", "other"}; in testSet()
121 TS_ASSERT(ContainsKey(const_set, "entry")); in testSet()
122 TS_ASSERT(!ContainsKey(const_set, "non member")); in testSet()
131 const std::unordered_set<string> const_set{"entry", "other"}; in testUnorderedSet()
132 TS_ASSERT(ContainsKey(const_set, "entry")); in testUnorderedSet()
133 TS_ASSERT(!ContainsKey(const_set, "non member")); in testUnorderedSet()
/dports/lang/ruby26/ruby-2.6.9/test/ruby/
H A Dtest_module.rb375 Other.const_set(n, 999)
406 const_set(:X, 1)
571 m.const_set(:N, n)
644 const_set(:X, 123)
967 m.const_set(:Foo, :foo)
1408 c.const_set(:FOO, "foo")
1417 c.const_set(:FOO, "foo")
1431 m.const_set(:FOO, "foo")
1440 m.const_set(:FOO, "foo")
1459 c.const_set(:FOO, "foo")
[all …]
H A Dtest_basicinstructions.rb288 Const::A.const_set :C, 'Const::A::C'
293 Const::A::B.const_set :C, 'Const::A::B::C'
298 Const.const_set :C, 'Const::C'
335 Const::A::B.const_set :C, 'Const::A::B::C'
343 Const::A.const_set :C, 'Const::A::C'
352 Const.const_set :C, 'Const::C' unless Const.const_defined?(:C)
353 Const::A.const_set :C, 'Const::A::C' unless Const::A.const_defined?(:C)
354 Const::A::B.const_set :C, 'Const::A::B::C' unless Const::A::B.const_defined?(:C)
371 Const::AA.const_set :CC, 'Const::AA::CC'
379 Const::AAA.const_set :CC, 'Const::AAA::CC'
H A Dtest_const.rb54 c.const_set(name, 1)
56 assert_warning(<<-WARNING) {c.const_set(name, 2)}
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/config/
H A Dinject_enterprise_edition_module_spec.rb25 extension_namespace.const_set(fish_name, fish_extension) # FF::Fish
39 another_namespace.const_set(extension_name, extension_namespace) # QA::FF
40 extension_namespace.const_set(fish_name, fish_extension) # QA::FF::Fish
75 extension_namespace.const_set(fish_name, fish_extension) # FF::Fish
/dports/lang/ruby26/ruby-2.6.9/ext/json/lib/json/
H A Dcommon.rb29 const_set :Parser, parser
67 const_set :State, self.state
68 const_set :SAFE_STATE_PROTOTYPE, State.new
69 const_set :FAST_STATE_PROTOTYPE, State.new(
76 const_set :PRETTY_STATE_PROTOTYPE, State.new(
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/libnghttp2-sys-0.1.7+1.45.0/nghttp2/third-party/mruby/mrbgems/mruby-class-ext/test/
H A Dmodule.rb58 const_set :SetInner, Class.new
66 const_set :SetInner, Class.new
68 Object.const_set :SetOuter, outer
/dports/net/proby/proby-1.0.2/cargo-crates/libnghttp2-sys-0.1.4+1.41.0/nghttp2/third-party/mruby/mrbgems/mruby-class-ext/test/
H A Dmodule.rb58 const_set :SetInner, Class.new
66 const_set :SetInner, Class.new
68 Object.const_set :SetOuter, outer
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/libnghttp2-sys-0.1.6+1.43.0/nghttp2/third-party/mruby/mrbgems/mruby-class-ext/test/
H A Dmodule.rb58 const_set :SetInner, Class.new
66 const_set :SetInner, Class.new
68 Object.const_set :SetOuter, outer
/dports/www/libnghttp2/nghttp2-1.46.0/third-party/mruby/mrbgems/mruby-class-ext/test/
H A Dmodule.rb58 const_set :SetInner, Class.new
66 const_set :SetInner, Class.new
68 Object.const_set :SetOuter, outer
/dports/lang/rust/rustc-1.58.1-src/vendor/libnghttp2-sys/nghttp2/third-party/mruby/mrbgems/mruby-class-ext/test/
H A Dmodule.rb58 const_set :SetInner, Class.new
66 const_set :SetInner, Class.new
68 Object.const_set :SetOuter, outer
/dports/www/h2o-devel/h2o-dcc7134/deps/mruby/mrbgems/mruby-class-ext/test/
H A Dmodule.rb58 const_set :SetInner, Class.new
66 const_set :SetInner, Class.new
68 Object.const_set :SetOuter, outer
/dports/www/nghttp2/nghttp2-1.46.0/third-party/mruby/mrbgems/mruby-class-ext/test/
H A Dmodule.rb58 const_set :SetInner, Class.new
66 const_set :SetInner, Class.new
68 Object.const_set :SetOuter, outer
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/models/concerns/
H A Dtimebox.rb38 const_set :None, TimeboxStruct.new("No #{self.name}", "No #{self.name}", 0, self.name)
39 const_set :Any, TimeboxStruct.new("Any #{self.name}", '', -1, self.name)
40 const_set :Upcoming, TimeboxStruct.new('Upcoming', '#upcoming', -2, self.name)
41 const_set :Started, TimeboxStruct.new('Started', '#started', -3, self.name)
/dports/lang/ruby26/ruby-2.6.9/ext/openssl/lib/openssl/
H A Dcipher.rb24 const_set(name, klass)
33 const_set("AES#{keylen}", klass)
/dports/lang/ruby26/ruby-2.6.9/test/irb/
H A Dtest_workspace.rb84 const_set(:SCRIPT_LINES__, debug_lines)
90 const_set(:SCRIPT_LINES__, script_lines) if script_lines
/dports/lang/ruby26/ruby-2.6.9/lib/rubygems/
H A Dtest_case.rb1180 Object.const_set :RUBY_VERSION, version
1181 Object.const_set :RUBY_PATCHLEVEL, patchlevel if patchlevel
1182 Object.const_set :RUBY_REVISION, revision if revision
1183 Object.const_set :RUBY_DESCRIPTION, description if description
1184 Object.const_set :RUBY_ENGINE, engine
1191 Object.const_set :RUBY_VERSION, @RUBY_VERSION
1192 Object.const_set :RUBY_PATCHLEVEL, @RUBY_PATCHLEVEL if
1194 Object.const_set :RUBY_REVISION, @RUBY_REVISION if
1196 Object.const_set :RUBY_DESCRIPTION, @RUBY_DESCRIPTION if
1198 Object.const_set :RUBY_ENGINE, @RUBY_ENGINE
[all …]
/dports/lang/ruby26/ruby-2.6.9/lib/webrick/
H A Dhttpstatus.rb127 const_set("RC_#{var_name}", code)
131 const_set(err_name, err_class)
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/process/fixtures/
H A Dcommon.rb6 Object.const_set(:RUBY_EXE, MSpecScript::SYSTEM_RUBY)
10 Object.const_set(:RUBY_EXE, @ruby)
/dports/lang/ruby26/ruby-2.6.9/test/dtrace/
H A Dhelper.rb156 DTrace::TestCase.const_set(:IMPL, impl)
157 DTrace::TestCase.const_set(:RUBYBIN, rubybin)

123456