workos 0.10.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.ruby-version +1 -1
  4. data/.semaphore/semaphore.yml +8 -2
  5. data/Gemfile.lock +49 -36
  6. data/lib/workos.rb +3 -0
  7. data/lib/workos/client.rb +3 -3
  8. data/lib/workos/connection.rb +8 -1
  9. data/lib/workos/directory.rb +53 -0
  10. data/lib/workos/directory_group.rb +44 -0
  11. data/lib/workos/directory_sync.rb +63 -7
  12. data/lib/workos/directory_user.rb +63 -0
  13. data/lib/workos/portal.rb +1 -1
  14. data/lib/workos/profile.rb +1 -2
  15. data/lib/workos/sso.rb +33 -6
  16. data/lib/workos/types.rb +3 -0
  17. data/lib/workos/types/connection_struct.rb +2 -0
  18. data/lib/workos/types/directory_group_struct.rb +13 -0
  19. data/lib/workos/types/directory_struct.rb +16 -0
  20. data/lib/workos/types/directory_user_struct.rb +19 -0
  21. data/lib/workos/types/intent_enum.rb +1 -0
  22. data/lib/workos/version.rb +1 -1
  23. data/sorbet/rbi/gems/addressable.rbi +199 -0
  24. data/sorbet/rbi/gems/ast.rbi +49 -0
  25. data/sorbet/rbi/gems/codecov.rbi +37 -0
  26. data/sorbet/rbi/gems/crack.rbi +62 -0
  27. data/sorbet/rbi/gems/docile.rbi +36 -0
  28. data/sorbet/rbi/gems/hashdiff.rbi +66 -0
  29. data/sorbet/rbi/gems/parallel.rbi +83 -0
  30. data/sorbet/rbi/gems/parser.rbi +1429 -0
  31. data/sorbet/rbi/gems/public_suffix.rbi +104 -0
  32. data/sorbet/rbi/gems/rainbow.rbi +118 -0
  33. data/sorbet/rbi/gems/rake.rbi +644 -0
  34. data/sorbet/rbi/gems/regexp_parser.rbi +926 -0
  35. data/sorbet/rbi/gems/rexml.rbi +628 -0
  36. data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
  37. data/sorbet/rbi/gems/rspec-expectations.rbi +1127 -0
  38. data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
  39. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  40. data/sorbet/rbi/gems/rspec.rbi +15 -0
  41. data/sorbet/rbi/gems/rubocop-ast.rbi +1355 -0
  42. data/sorbet/rbi/gems/rubocop.rbi +7253 -0
  43. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  44. data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
  45. data/sorbet/rbi/gems/simplecov.rbi +406 -0
  46. data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
  47. data/sorbet/rbi/gems/vcr.rbi +572 -0
  48. data/sorbet/rbi/gems/webmock.rbi +556 -0
  49. data/sorbet/rbi/gems/yard.rbi +1165 -0
  50. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
  51. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +1891 -0
  52. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +2072 -0
  53. data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +1214 -0
  54. data/sorbet/rbi/todo.rbi +1 -3
  55. data/spec/lib/workos/audit_trail_spec.rb +0 -8
  56. data/spec/lib/workos/directory_sync_spec.rb +347 -40
  57. data/spec/lib/workos/passwordless_spec.rb +0 -8
  58. data/spec/lib/workos/portal_spec.rb +18 -11
  59. data/spec/lib/workos/sso_spec.rb +150 -71
  60. data/spec/spec_helper.rb +2 -1
  61. data/spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml +72 -0
  62. data/spec/support/fixtures/vcr_cassettes/{sso/list_connections.yml → directory_sync/list_directories/with_after.yml} +7 -7
  63. data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_limit_param.yml → directory_sync/list_directories/with_before.yml} +8 -8
  64. data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_connection_type_param.yml → directory_sync/list_directories/with_domain.yml} +11 -10
  65. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +74 -0
  66. data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_directories.yml → list_directories/with_no_options.yml} +1 -1
  67. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +73 -0
  68. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +76 -0
  69. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +74 -0
  70. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +78 -0
  71. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml +74 -0
  72. data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_groups.yml → list_groups/with_no_options.yml} +16 -6
  73. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +72 -0
  74. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +86 -0
  75. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +75 -0
  76. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +93 -0
  77. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +76 -0
  78. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +75 -0
  79. data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_users.yml → list_users/with_no_options.yml} +16 -6
  80. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml +72 -0
  81. data/spec/support/fixtures/vcr_cassettes/portal/{generate_link.yml → generate_link_sso.yml} +1 -1
  82. data/spec/support/fixtures/vcr_cassettes/sso/create_connection_with_valid_source.yml +3 -3
  83. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +73 -0
  84. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +73 -0
  85. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +73 -0
  86. data/spec/support/fixtures/vcr_cassettes/sso/{list_connections_with_domain_param.yml → list_connections/with_domain.yml} +6 -6
  87. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +74 -0
  88. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +73 -0
  89. data/spec/support/fixtures/vcr_cassettes/sso/{list_connections_with_before_param.yml → list_connections/with_organization_id.yml} +7 -8
  90. data/workos.gemspec +2 -0
  91. metadata +101 -40
  92. data/sorbet/rbi/hidden-definitions/errors.txt +0 -24896
  93. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -38411
  94. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8684
  95. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +0 -4222
  96. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
  97. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
  98. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories_with_domain_param.yml +0 -63
  99. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups_with_directory_param.yml +0 -62
  100. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users_with_directory_param.yml +0 -62
  101. data/spec/support/fixtures/vcr_cassettes/sso/list_connections_with_after_param.yml +0 -72
@@ -0,0 +1,628 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rexml/all/rexml.rbi
9
+ #
10
+ # rexml-3.2.5
11
+
12
+ module REXML
13
+ end
14
+ class REXML::ParseException < RuntimeError
15
+ def context; end
16
+ def continued_exception; end
17
+ def continued_exception=(arg0); end
18
+ def initialize(message, source = nil, parser = nil, exception = nil); end
19
+ def line; end
20
+ def parser; end
21
+ def parser=(arg0); end
22
+ def position; end
23
+ def source; end
24
+ def source=(arg0); end
25
+ def to_s; end
26
+ end
27
+ class REXML::UndefinedNamespaceException < REXML::ParseException
28
+ def initialize(prefix, source, parser); end
29
+ end
30
+ module REXML::Encoding
31
+ def decode(string); end
32
+ def encode(string); end
33
+ def encoding; end
34
+ def encoding=(encoding); end
35
+ def find_encoding(name); end
36
+ end
37
+ class REXML::SourceFactory
38
+ def self.create_from(arg); end
39
+ end
40
+ class REXML::Source
41
+ def buffer; end
42
+ def consume(pattern); end
43
+ def current_line; end
44
+ def detect_encoding; end
45
+ def empty?; end
46
+ def encoding; end
47
+ def encoding=(enc); end
48
+ def encoding_updated; end
49
+ def initialize(arg, encoding = nil); end
50
+ def line; end
51
+ def match(pattern, cons = nil); end
52
+ def match_to(char, pattern); end
53
+ def match_to_consume(char, pattern); end
54
+ def position; end
55
+ def read; end
56
+ def scan(pattern, cons = nil); end
57
+ include REXML::Encoding
58
+ end
59
+ class REXML::IOSource < REXML::Source
60
+ def consume(pattern); end
61
+ def current_line; end
62
+ def empty?; end
63
+ def encoding_updated; end
64
+ def initialize(arg, block_size = nil, encoding = nil); end
65
+ def match(pattern, cons = nil); end
66
+ def position; end
67
+ def read; end
68
+ def readline; end
69
+ def scan(pattern, cons = nil); end
70
+ end
71
+ module REXML::Parsers
72
+ end
73
+ class REXML::Parsers::BaseParser
74
+ def add_listener(listener); end
75
+ def empty?; end
76
+ def entity(reference, entities); end
77
+ def has_next?; end
78
+ def initialize(source); end
79
+ def need_source_encoding_update?(xml_declaration_encoding); end
80
+ def normalize(input, entities = nil, entity_filter = nil); end
81
+ def parse_attributes(prefixes, curr_ns); end
82
+ def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
83
+ def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
84
+ def parse_name(base_error_message); end
85
+ def peek(depth = nil); end
86
+ def position; end
87
+ def process_instruction; end
88
+ def pull; end
89
+ def pull_event; end
90
+ def source; end
91
+ def stream=(source); end
92
+ def unnormalize(string, entities = nil, filter = nil); end
93
+ def unshift(token); end
94
+ end
95
+ class REXML::Parsers::StreamParser
96
+ def add_listener(listener); end
97
+ def initialize(source, listener); end
98
+ def parse; end
99
+ end
100
+ module REXML::XMLTokens
101
+ end
102
+ module REXML::Light
103
+ end
104
+ class REXML::Light::Node
105
+ def <<(element); end
106
+ def =~(path); end
107
+ def [](reference, ns = nil); end
108
+ def []=(reference, ns, value = nil); end
109
+ def children; end
110
+ def each; end
111
+ def has_name?(name, namespace = nil); end
112
+ def initialize(node = nil); end
113
+ def local_name; end
114
+ def local_name=(name_str); end
115
+ def name; end
116
+ def name=(name_str, ns = nil); end
117
+ def namespace(prefix = nil); end
118
+ def namespace=(namespace); end
119
+ def namespace_of(node, prefix = nil); end
120
+ def namesplit; end
121
+ def node_type; end
122
+ def parent; end
123
+ def parent=(node); end
124
+ def prefix(namespace = nil); end
125
+ def prefix_of(node, namespace = nil); end
126
+ def root; end
127
+ def size; end
128
+ def text=(foo); end
129
+ def to_s; end
130
+ end
131
+ module REXML::Security
132
+ def self.entity_expansion_limit; end
133
+ def self.entity_expansion_limit=(val); end
134
+ def self.entity_expansion_text_limit; end
135
+ def self.entity_expansion_text_limit=(val); end
136
+ end
137
+ module REXML::Formatters
138
+ end
139
+ class REXML::Formatters::Default
140
+ def initialize(ie_hack = nil); end
141
+ def write(node, output); end
142
+ def write_cdata(node, output); end
143
+ def write_comment(node, output); end
144
+ def write_document(node, output); end
145
+ def write_element(node, output); end
146
+ def write_instruction(node, output); end
147
+ def write_text(node, output); end
148
+ end
149
+ class REXML::Formatters::Pretty < REXML::Formatters::Default
150
+ def compact; end
151
+ def compact=(arg0); end
152
+ def indent_text(string, level = nil, style = nil, indentfirstline = nil); end
153
+ def initialize(indentation = nil, ie_hack = nil); end
154
+ def width; end
155
+ def width=(arg0); end
156
+ def wrap(string, width); end
157
+ def write_cdata(node, output); end
158
+ def write_comment(node, output); end
159
+ def write_document(node, output); end
160
+ def write_element(node, output); end
161
+ def write_text(node, output); end
162
+ end
163
+ module REXML::Node
164
+ def each_recursive(&block); end
165
+ def find_first_recursive(&block); end
166
+ def indent(to, ind); end
167
+ def index_in_parent; end
168
+ def next_sibling_node; end
169
+ def parent?; end
170
+ def previous_sibling_node; end
171
+ def to_s(indent = nil); end
172
+ end
173
+ class REXML::Child
174
+ def bytes; end
175
+ def document; end
176
+ def initialize(parent = nil); end
177
+ def next_sibling; end
178
+ def next_sibling=(other); end
179
+ def parent; end
180
+ def parent=(other); end
181
+ def previous_sibling; end
182
+ def previous_sibling=(other); end
183
+ def remove; end
184
+ def replace_with(child); end
185
+ include REXML::Node
186
+ end
187
+ class REXML::Entity < REXML::Child
188
+ def external; end
189
+ def initialize(stream, value = nil, parent = nil, reference = nil); end
190
+ def name; end
191
+ def ndata; end
192
+ def normalized; end
193
+ def pubid; end
194
+ def ref; end
195
+ def self.matches?(string); end
196
+ def to_s; end
197
+ def unnormalized; end
198
+ def value; end
199
+ def write(out, indent = nil); end
200
+ include REXML::XMLTokens
201
+ end
202
+ module REXML::EntityConst
203
+ end
204
+ class REXML::Parent < REXML::Child
205
+ def <<(object); end
206
+ def [](index); end
207
+ def []=(*args); end
208
+ def add(object); end
209
+ def children; end
210
+ def deep_clone; end
211
+ def delete(object); end
212
+ def delete_at(index); end
213
+ def delete_if(&block); end
214
+ def each(&block); end
215
+ def each_child(&block); end
216
+ def each_index(&block); end
217
+ def index(child); end
218
+ def initialize(parent = nil); end
219
+ def insert_after(child1, child2); end
220
+ def insert_before(child1, child2); end
221
+ def length; end
222
+ def parent?; end
223
+ def push(object); end
224
+ def replace_child(to_replace, replacement); end
225
+ def size; end
226
+ def to_a; end
227
+ def unshift(object); end
228
+ include Enumerable
229
+ end
230
+ module REXML::Namespace
231
+ def expanded_name; end
232
+ def fully_expanded_name; end
233
+ def has_name?(other, ns = nil); end
234
+ def local_name; end
235
+ def name; end
236
+ def name=(name); end
237
+ def prefix; end
238
+ def prefix=(arg0); end
239
+ include REXML::XMLTokens
240
+ end
241
+ class REXML::AttlistDecl < REXML::Child
242
+ def [](key); end
243
+ def each(&block); end
244
+ def element_name; end
245
+ def include?(key); end
246
+ def initialize(source); end
247
+ def node_type; end
248
+ def write(out, indent = nil); end
249
+ include Enumerable
250
+ end
251
+ class REXML::ReferenceWriter
252
+ def initialize(id_type, public_id_literal, system_literal, context = nil); end
253
+ def write(output); end
254
+ end
255
+ class REXML::DocType < REXML::Parent
256
+ def add(child); end
257
+ def attribute_of(element, attribute); end
258
+ def attributes_of(element); end
259
+ def clone; end
260
+ def context; end
261
+ def entities; end
262
+ def entity(name); end
263
+ def external_id; end
264
+ def initialize(first, parent = nil); end
265
+ def name; end
266
+ def namespaces; end
267
+ def node_type; end
268
+ def notation(name); end
269
+ def notations; end
270
+ def public; end
271
+ def system; end
272
+ def write(output, indent = nil, transitive = nil, ie_hack = nil); end
273
+ include REXML::XMLTokens
274
+ end
275
+ class REXML::Declaration < REXML::Child
276
+ def initialize(src); end
277
+ def to_s; end
278
+ def write(output, indent); end
279
+ end
280
+ class REXML::ElementDecl < REXML::Declaration
281
+ def initialize(src); end
282
+ end
283
+ class REXML::ExternalEntity < REXML::Child
284
+ def initialize(src); end
285
+ def to_s; end
286
+ def write(output, indent); end
287
+ end
288
+ class REXML::NotationDecl < REXML::Child
289
+ def initialize(name, middle, pub, sys); end
290
+ def name; end
291
+ def public; end
292
+ def public=(arg0); end
293
+ def system; end
294
+ def system=(arg0); end
295
+ def to_s; end
296
+ def write(output, indent = nil); end
297
+ end
298
+ class REXML::Text < REXML::Child
299
+ def <<(to_append); end
300
+ def <=>(other); end
301
+ def clear_cache; end
302
+ def clone; end
303
+ def doctype; end
304
+ def empty?; end
305
+ def indent_text(string, level = nil, style = nil, indentfirstline = nil); end
306
+ def initialize(arg, respect_whitespace = nil, parent = nil, raw = nil, entity_filter = nil, illegal = nil); end
307
+ def inspect; end
308
+ def node_type; end
309
+ def parent=(parent); end
310
+ def raw; end
311
+ def raw=(arg0); end
312
+ def self.check(string, pattern, doctype); end
313
+ def self.expand(ref, doctype, filter); end
314
+ def self.normalize(input, doctype = nil, entity_filter = nil); end
315
+ def self.read_with_substitution(input, illegal = nil); end
316
+ def self.unnormalize(string, doctype = nil, filter = nil, illegal = nil); end
317
+ def to_s; end
318
+ def value; end
319
+ def value=(val); end
320
+ def wrap(string, width, addnewline = nil); end
321
+ def write(writer, indent = nil, transitive = nil, ie_hack = nil); end
322
+ def write_with_substitution(out, input); end
323
+ def xpath; end
324
+ include Comparable
325
+ end
326
+ class REXML::Attribute
327
+ def ==(other); end
328
+ def clone; end
329
+ def doctype; end
330
+ def element; end
331
+ def element=(element); end
332
+ def hash; end
333
+ def initialize(first, second = nil, parent = nil); end
334
+ def inspect; end
335
+ def namespace(arg = nil); end
336
+ def node_type; end
337
+ def normalized=(arg0); end
338
+ def prefix; end
339
+ def remove; end
340
+ def to_s; end
341
+ def to_string; end
342
+ def value; end
343
+ def write(output, indent = nil); end
344
+ def xpath; end
345
+ include REXML::Namespace
346
+ include REXML::Node
347
+ end
348
+ class REXML::CData < REXML::Text
349
+ def clone; end
350
+ def initialize(first, whitespace = nil, parent = nil); end
351
+ def to_s; end
352
+ def value; end
353
+ def write(output = nil, indent = nil, transitive = nil, ie_hack = nil); end
354
+ end
355
+ module REXML::Functions
356
+ end
357
+ class REXML::Parsers::XPathParser
358
+ def AdditiveExpr(path, parsed); end
359
+ def AndExpr(path, parsed); end
360
+ def EqualityExpr(path, parsed); end
361
+ def FilterExpr(path, parsed); end
362
+ def FunctionCall(rest, parsed); end
363
+ def LocationPath(path, parsed); end
364
+ def MultiplicativeExpr(path, parsed); end
365
+ def NodeTest(path, parsed); end
366
+ def OrExpr(path, parsed); end
367
+ def PathExpr(path, parsed); end
368
+ def Predicate(path, parsed); end
369
+ def PrimaryExpr(path, parsed); end
370
+ def RelationalExpr(path, parsed); end
371
+ def RelativeLocationPath(path, parsed); end
372
+ def UnaryExpr(path, parsed); end
373
+ def UnionExpr(path, parsed); end
374
+ def abbreviate(path); end
375
+ def expand(path); end
376
+ def get_group(string); end
377
+ def namespaces=(namespaces); end
378
+ def parse(path); end
379
+ def parse_args(string); end
380
+ def predicate(path); end
381
+ def predicate_to_string(path, &block); end
382
+ include REXML::XMLTokens
383
+ end
384
+ module REXML::DClonable
385
+ end
386
+ class REXML::XPathParser
387
+ def []=(variable_name, value); end
388
+ def child(nodeset); end
389
+ def compare(a, operator, b); end
390
+ def descendant(nodeset, include_self); end
391
+ def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
392
+ def each_unnode(nodeset); end
393
+ def enter(tag, *args); end
394
+ def equality_relational_compare(set1, op, set2); end
395
+ def evaluate_predicate(expression, nodesets); end
396
+ def expr(path_stack, nodeset, context = nil); end
397
+ def filter_nodeset(nodeset); end
398
+ def first(path_stack, node); end
399
+ def following(node); end
400
+ def following_node_of(node); end
401
+ def get_first(path, nodeset); end
402
+ def get_namespace(node, prefix); end
403
+ def initialize(strict: nil); end
404
+ def leave(tag, *args); end
405
+ def match(path_stack, nodeset); end
406
+ def namespaces=(namespaces = nil); end
407
+ def next_sibling_node(node); end
408
+ def node_test(path_stack, nodesets, any_type: nil); end
409
+ def norm(b); end
410
+ def normalize_compare_values(a, operator, b); end
411
+ def parse(path, nodeset); end
412
+ def preceding(node); end
413
+ def preceding_node_of(node); end
414
+ def predicate(path, nodeset); end
415
+ def sort(array_of_nodes, order); end
416
+ def step(path_stack, any_type: nil, order: nil); end
417
+ def strict?; end
418
+ def trace(*args); end
419
+ def unnode(nodeset); end
420
+ def value_type(value); end
421
+ def variables=(vars = nil); end
422
+ include REXML::XMLTokens
423
+ end
424
+ class REXML::XPathNode
425
+ def context; end
426
+ def initialize(node, context = nil); end
427
+ def position; end
428
+ def raw_node; end
429
+ end
430
+ class REXML::XPath
431
+ def self.each(element, path = nil, namespaces = nil, variables = nil, options = nil, &block); end
432
+ def self.first(element, path = nil, namespaces = nil, variables = nil, options = nil); end
433
+ def self.match(element, path = nil, namespaces = nil, variables = nil, options = nil); end
434
+ include REXML::Functions
435
+ end
436
+ class REXML::Element < REXML::Parent
437
+ def [](name_or_index); end
438
+ def __to_xpath_helper(node); end
439
+ def add_attribute(key, value = nil); end
440
+ def add_attributes(hash); end
441
+ def add_element(element, attrs = nil); end
442
+ def add_namespace(prefix, uri = nil); end
443
+ def add_text(text); end
444
+ def attribute(name, namespace = nil); end
445
+ def attributes; end
446
+ def cdatas; end
447
+ def clone; end
448
+ def comments; end
449
+ def context; end
450
+ def context=(arg0); end
451
+ def delete_attribute(key); end
452
+ def delete_element(element); end
453
+ def delete_namespace(namespace = nil); end
454
+ def document; end
455
+ def each_element(xpath = nil, &block); end
456
+ def each_element_with_attribute(key, value = nil, max = nil, name = nil, &block); end
457
+ def each_element_with_text(text = nil, max = nil, name = nil, &block); end
458
+ def each_with_something(test, max = nil, name = nil); end
459
+ def elements; end
460
+ def get_elements(xpath); end
461
+ def get_text(path = nil); end
462
+ def has_attributes?; end
463
+ def has_elements?; end
464
+ def has_text?; end
465
+ def ignore_whitespace_nodes; end
466
+ def initialize(arg = nil, parent = nil, context = nil); end
467
+ def inspect; end
468
+ def instructions; end
469
+ def namespace(prefix = nil); end
470
+ def namespaces; end
471
+ def next_element; end
472
+ def node_type; end
473
+ def prefixes; end
474
+ def previous_element; end
475
+ def raw; end
476
+ def root; end
477
+ def root_node; end
478
+ def text(path = nil); end
479
+ def text=(text); end
480
+ def texts; end
481
+ def whitespace; end
482
+ def write(output = nil, indent = nil, transitive = nil, ie_hack = nil); end
483
+ def xpath; end
484
+ include REXML::Namespace
485
+ end
486
+ class REXML::Elements
487
+ def <<(element = nil); end
488
+ def [](index, name = nil); end
489
+ def []=(index, element); end
490
+ def add(element = nil); end
491
+ def collect(xpath = nil); end
492
+ def delete(element); end
493
+ def delete_all(xpath); end
494
+ def each(xpath = nil); end
495
+ def empty?; end
496
+ def index(element); end
497
+ def initialize(parent); end
498
+ def inject(xpath = nil, initial = nil); end
499
+ def literalize(name); end
500
+ def parent; end
501
+ def size; end
502
+ def to_a(xpath = nil); end
503
+ include Enumerable
504
+ end
505
+ class REXML::Attributes < Hash
506
+ def <<(attribute); end
507
+ def [](name); end
508
+ def []=(name, value); end
509
+ def add(attribute); end
510
+ def delete(attribute); end
511
+ def delete_all(name); end
512
+ def each; end
513
+ def each_attribute; end
514
+ def get_attribute(name); end
515
+ def get_attribute_ns(namespace, name); end
516
+ def initialize(element); end
517
+ def length; end
518
+ def namespaces; end
519
+ def prefixes; end
520
+ def size; end
521
+ def to_a; end
522
+ end
523
+ class REXML::XMLDecl < REXML::Child
524
+ def ==(other); end
525
+ def clone; end
526
+ def content(enc); end
527
+ def dowrite; end
528
+ def encoding=(enc); end
529
+ def initialize(version = nil, encoding = nil, standalone = nil); end
530
+ def inspect; end
531
+ def node_type; end
532
+ def nowrite; end
533
+ def old_enc=(encoding); end
534
+ def self.default; end
535
+ def stand_alone?; end
536
+ def standalone; end
537
+ def standalone=(arg0); end
538
+ def version; end
539
+ def version=(arg0); end
540
+ def write(writer, indent = nil, transitive = nil, ie_hack = nil); end
541
+ def writeencoding; end
542
+ def writethis; end
543
+ def xmldecl(version, encoding, standalone); end
544
+ include REXML::Encoding
545
+ end
546
+ class REXML::Comment < REXML::Child
547
+ def <=>(other); end
548
+ def ==(other); end
549
+ def clone; end
550
+ def initialize(first, second = nil); end
551
+ def node_type; end
552
+ def string; end
553
+ def string=(arg0); end
554
+ def to_s; end
555
+ def write(output, indent = nil, transitive = nil, ie_hack = nil); end
556
+ include Comparable
557
+ end
558
+ class REXML::Instruction < REXML::Child
559
+ def ==(other); end
560
+ def clone; end
561
+ def content; end
562
+ def content=(arg0); end
563
+ def initialize(target, content = nil); end
564
+ def inspect; end
565
+ def node_type; end
566
+ def target; end
567
+ def target=(arg0); end
568
+ def write(writer, indent = nil, transitive = nil, ie_hack = nil); end
569
+ end
570
+ class REXML::Output
571
+ def <<(content); end
572
+ def encoding; end
573
+ def initialize(real_IO, encd = nil); end
574
+ def to_s; end
575
+ include REXML::Encoding
576
+ end
577
+ module REXML::Validation
578
+ end
579
+ class REXML::Validation::ValidationException < RuntimeError
580
+ def initialize(msg); end
581
+ end
582
+ class REXML::Parsers::TreeParser
583
+ def add_listener(listener); end
584
+ def initialize(source, build_context = nil); end
585
+ def parse; end
586
+ end
587
+ class REXML::Document < REXML::Element
588
+ def <<(child); end
589
+ def add(child); end
590
+ def add_element(arg = nil, arg2 = nil); end
591
+ def build(source); end
592
+ def clone; end
593
+ def doctype; end
594
+ def document; end
595
+ def encoding; end
596
+ def entity_expansion_count; end
597
+ def expanded_name; end
598
+ def initialize(source = nil, context = nil); end
599
+ def name; end
600
+ def node_type; end
601
+ def record_entity_expansion; end
602
+ def root; end
603
+ def self.entity_expansion_limit; end
604
+ def self.entity_expansion_limit=(val); end
605
+ def self.entity_expansion_text_limit; end
606
+ def self.entity_expansion_text_limit=(val); end
607
+ def self.parse_stream(source, listener); end
608
+ def stand_alone?; end
609
+ def version; end
610
+ def write(*arguments); end
611
+ def xml_decl; end
612
+ end
613
+ module REXML::StreamListener
614
+ def attlistdecl(element_name, attributes, raw_content); end
615
+ def cdata(content); end
616
+ def comment(comment); end
617
+ def doctype(name, pub_sys, long_name, uri); end
618
+ def doctype_end; end
619
+ def elementdecl(content); end
620
+ def entity(content); end
621
+ def entitydecl(content); end
622
+ def instruction(name, instruction); end
623
+ def notationdecl(content); end
624
+ def tag_end(name); end
625
+ def tag_start(name, attrs); end
626
+ def text(text); end
627
+ def xmldecl(version, encoding, standalone); end
628
+ end