Class: CabezaDeTermo::JsonSpec::ExpressionWalker
- Inherits:
-
Object
- Object
- CabezaDeTermo::JsonSpec::ExpressionWalker
show all
- Defined in:
- lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb
Instance Method Summary
collapse
Instance Method Details
#supressing(error_class, &block) ⇒ Object
57
58
59
60
61
62
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 57
def supressing(error_class, &block)
begin
block.call
rescue error_class
end
end
|
#walk_expectation(expectation) ⇒ Object
52
53
54
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 52
def walk_expectation(expectation)
CdT.subclass_responsibility
end
|
#walk_expectation_runner(expectation_runner) ⇒ Object
48
49
50
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 48
def walk_expectation_runner(expectation_runner)
CdT.subclass_responsibility
end
|
#walk_json_any_of(json_any_of) ⇒ Object
40
41
42
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 40
def walk_json_any_of(json_any_of)
CdT.subclass_responsibility
end
|
#walk_json_anything(json_anything) ⇒ Object
44
45
46
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 44
def walk_json_anything(json_anything)
CdT.subclass_responsibility
end
|
#walk_json_each(json_each) ⇒ Object
28
29
30
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 28
def walk_json_each(json_each)
CdT.subclass_responsibility
end
|
#walk_json_each_field(json_each_field) ⇒ Object
16
17
18
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 16
def walk_json_each_field(json_each_field)
CdT.subclass_responsibility
end
|
#walk_json_field(json_field) ⇒ Object
32
33
34
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 32
def walk_json_field(json_field)
CdT.subclass_responsibility
end
|
#walk_json_field_name(json_field_name) ⇒ Object
20
21
22
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 20
def walk_json_field_name(json_field_name)
CdT.subclass_responsibility
end
|
#walk_json_list(json_list) ⇒ Object
24
25
26
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 24
def walk_json_list(json_list)
CdT.subclass_responsibility
end
|
#walk_json_object(json_object) ⇒ Object
12
13
14
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 12
def walk_json_object(json_object)
CdT.subclass_responsibility
end
|
#walk_json_scalar(json_scalar) ⇒ Object
36
37
38
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 36
def walk_json_scalar(json_scalar)
CdT.subclass_responsibility
end
|
#walk_json_spec(json_spec) ⇒ Object
8
9
10
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 8
def walk_json_spec(json_spec)
CdT.subclass_responsibility
end
|
#walk_on(json_walkable) ⇒ Object
4
5
6
|
# File 'lib/cabeza-de-termo/json-spec/walkers/expression-walker.rb', line 4
def walk_on(json_walkable)
json_walkable.accept_walker(self)
end
|