shotgrid_api_ruby 0.2.0.4 → 0.2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test_and_publish.yml +3 -3
- data/.github/workflows/test_only.yml +7 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.md +54 -2
- data/Gemfile +12 -0
- data/Gemfile.lock +108 -93
- data/bin/prettirun +1 -1
- data/docs/ShotgridApiRuby/Auth/Validator.html +4 -4
- data/docs/ShotgridApiRuby/Auth.html +4 -4
- data/docs/ShotgridApiRuby/Client.html +4 -4
- data/docs/ShotgridApiRuby/Entities/Params/TooComplexFiltersError.html +4 -4
- data/docs/ShotgridApiRuby/Entities/Params.html +41 -41
- data/docs/ShotgridApiRuby/Entities/Schema.html +4 -4
- data/docs/ShotgridApiRuby/Entities/Summarize/Summary.html +8 -8
- data/docs/ShotgridApiRuby/Entities/Summarize.html +9 -9
- data/docs/ShotgridApiRuby/Entities.html +27 -27
- data/docs/ShotgridApiRuby/Entity.html +12 -12
- data/docs/ShotgridApiRuby/Preferences.html +4 -4
- data/docs/ShotgridApiRuby/ServerInfo.html +4 -4
- data/docs/ShotgridApiRuby/ShotgridCallError.html +4 -4
- data/docs/ShotgridApiRuby/Types.html +4 -4
- data/docs/ShotgridApiRuby.html +5 -5
- data/docs/_index.html +5 -5
- data/docs/file.README.html +4 -4
- data/docs/frames.html +1 -1
- data/docs/index.html +4 -4
- data/docs/top-level-namespace.html +4 -4
- data/lib/shotgrid_api_ruby/entities/params.rb +15 -18
- data/lib/shotgrid_api_ruby/entities/summarize.rb +4 -4
- data/lib/shotgrid_api_ruby/entities.rb +23 -23
- data/lib/shotgrid_api_ruby/version.rb +1 -1
- data/shotgrid_api_ruby.gemspec +3 -12
- data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +18676 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +533 -3
- data/sorbet/rbi/gems/backport@1.2.0.rbi +518 -4
- data/sorbet/rbi/gems/benchmark@0.2.1.rbi +588 -0
- data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +308 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +2065 -28
- data/sorbet/rbi/gems/childprocess@4.1.0.rbi +397 -4
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +2425 -4
- data/sorbet/rbi/gems/concurrent-ruby@1.2.0.rbi +11570 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +335 -13
- data/sorbet/rbi/gems/dotenv@2.8.1.rbi +234 -0
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +4 -4
- data/sorbet/rbi/gems/faker@3.1.0.rbi +13380 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +167 -11
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +94 -11
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +105 -11
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +118 -11
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +273 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +106 -11
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +92 -11
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +97 -11
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +106 -11
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +227 -0
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +2743 -0
- data/sorbet/rbi/gems/ffi@1.15.5.rbi +8 -0
- data/sorbet/rbi/gems/formatador@1.1.0.rbi +8 -0
- data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +62 -4
- data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +558 -4
- data/sorbet/rbi/gems/guard@2.18.0.rbi +4 -4
- data/sorbet/rbi/gems/haml@6.1.1.rbi +1588 -0
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +893 -4
- data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +15 -4
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +129 -4
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3271 -0
- data/sorbet/rbi/gems/listen@3.8.0.rbi +1181 -0
- data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +4 -4
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +202 -2
- data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +233 -0
- data/sorbet/rbi/gems/nenv@0.3.0.rbi +4 -4
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/nokogiri@1.14.0.rbi +7250 -0
- data/sorbet/rbi/gems/notiffany@0.1.3.rbi +4 -4
- data/sorbet/rbi/gems/overcommit@0.60.0.rbi +2399 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
- data/sorbet/rbi/gems/parser@3.2.0.0.rbi +6964 -0
- data/sorbet/rbi/gems/prettier@3.2.2.rbi +22 -0
- data/sorbet/rbi/gems/prettier_print@1.2.0.rbi +8 -0
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1171 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
- data/sorbet/rbi/gems/racc@1.6.2.rbi +154 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +408 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +2248 -13
- data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +8 -0
- data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +4 -4
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +8 -0
- data/sorbet/rbi/gems/regexp_parser@2.6.2.rbi +3481 -0
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +389 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4048 -3
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10809 -0
- data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8109 -0
- data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5308 -0
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1620 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +91 -0
- data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +387 -15
- data/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi +7019 -0
- data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +102 -4
- data/sorbet/rbi/gems/rubocop-performance@1.15.2.rbi +3021 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +990 -0
- data/sorbet/rbi/gems/rubocop@1.44.1.rbi +54394 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +4 -4
- data/sorbet/rbi/gems/shellany@0.0.1.rbi +4 -4
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +135 -5
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/solargraph@0.48.0.rbi +9146 -0
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
- data/sorbet/rbi/gems/syntax_tree-haml@3.0.0.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree-rbs@0.5.1.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@5.2.0.rbi +8 -0
- data/sorbet/rbi/gems/tapioca@0.10.5.rbi +3226 -0
- data/sorbet/rbi/gems/temple@0.10.0.rbi +1722 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
- data/sorbet/rbi/gems/tilt@2.0.11.rbi +745 -0
- data/sorbet/rbi/gems/timecop@0.9.6.rbi +368 -0
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5914 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
- data/sorbet/rbi/gems/vcr@6.1.0.rbi +3020 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +17863 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.6.rbi +950 -0
- data/yarn.lock +3 -3
- metadata +71 -190
- data/sorbet/rbi/gems/activesupport@6.1.4.1.rbi +0 -3770
- data/sorbet/rbi/gems/benchmark@0.1.1.rbi +0 -65
- data/sorbet/rbi/gems/bundler-audit@0.8.0.rbi +0 -8
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
- data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -8
- data/sorbet/rbi/gems/dotenv@2.7.6.rbi +0 -88
- data/sorbet/rbi/gems/faker@2.19.0.rbi +0 -2513
- data/sorbet/rbi/gems/faraday@1.7.0.rbi +0 -783
- data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
- data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
- data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -8
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -584
- data/sorbet/rbi/gems/kramdown@2.3.1.rbi +0 -8
- data/sorbet/rbi/gems/listen@3.7.0.rbi +0 -476
- data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
- data/sorbet/rbi/gems/multipart-post@2.1.1.rbi +0 -69
- data/sorbet/rbi/gems/nokogiri@1.12.3.rbi +0 -8
- data/sorbet/rbi/gems/overcommit@0.58.0.rbi +0 -8
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -8
- data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1610
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1731
- data/sorbet/rbi/gems/prettier@1.6.1.rbi +0 -8
- data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +0 -461
- data/sorbet/rbi/gems/pry@0.13.1.rbi +0 -2553
- data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
- data/sorbet/rbi/gems/reverse_markdown@2.0.0.rbi +0 -8
- data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2500
- data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
- data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -510
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -39
- data/sorbet/rbi/gems/rubocop-ast@1.11.0.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-performance@1.11.5.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -8
- data/sorbet/rbi/gems/rubocop@1.20.0.rbi +0 -8
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
- data/sorbet/rbi/gems/solargraph@0.43.0.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.2.rbi +0 -1204
- data/sorbet/rbi/gems/tapioca@0.4.25.rbi +0 -1239
- data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -8
- data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
- data/sorbet/rbi/gems/tilt@2.0.10.rbi +0 -8
- data/sorbet/rbi/gems/timecop@0.9.4.rbi +0 -82
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -857
- data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -8
- data/sorbet/rbi/gems/vcr@6.0.0.rbi +0 -782
- data/sorbet/rbi/gems/yard-sorbet@0.5.3.rbi +0 -8
- data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -8
- data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
|
@@ -0,0 +1,1588 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `haml` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem haml`.
|
|
6
|
+
|
|
7
|
+
# There are only helpers that depend on ActionView internals.
|
|
8
|
+
#
|
|
9
|
+
# source://haml//lib/haml/error.rb#2
|
|
10
|
+
module Haml; end
|
|
11
|
+
|
|
12
|
+
# source://haml//lib/haml/ambles.rb#3
|
|
13
|
+
class Haml::Ambles < ::Temple::Filter
|
|
14
|
+
# @return [Ambles] a new instance of Ambles
|
|
15
|
+
#
|
|
16
|
+
# source://haml//lib/haml/ambles.rb#6
|
|
17
|
+
def initialize(*_arg0); end
|
|
18
|
+
|
|
19
|
+
# source://haml//lib/haml/ambles.rb#12
|
|
20
|
+
def call(ast); end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# source://haml//lib/haml/attribute_builder.rb#4
|
|
24
|
+
module Haml::AttributeBuilder
|
|
25
|
+
class << self
|
|
26
|
+
def build(*_arg0); end
|
|
27
|
+
def build_aria(*_arg0); end
|
|
28
|
+
def build_class(*_arg0); end
|
|
29
|
+
def build_data(*_arg0); end
|
|
30
|
+
def build_id(*_arg0); end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# source://haml//lib/haml/attribute_builder.rb#5
|
|
35
|
+
Haml::AttributeBuilder::BOOLEAN_ATTRIBUTES = T.let(T.unsafe(nil), Array)
|
|
36
|
+
|
|
37
|
+
# source://haml//lib/haml/attribute_compiler.rb#7
|
|
38
|
+
class Haml::AttributeCompiler
|
|
39
|
+
# @return [AttributeCompiler] a new instance of AttributeCompiler
|
|
40
|
+
#
|
|
41
|
+
# source://haml//lib/haml/attribute_compiler.rb#8
|
|
42
|
+
def initialize(identity, options); end
|
|
43
|
+
|
|
44
|
+
# source://haml//lib/haml/attribute_compiler.rb#15
|
|
45
|
+
def compile(node); end
|
|
46
|
+
|
|
47
|
+
private
|
|
48
|
+
|
|
49
|
+
# source://haml//lib/haml/attribute_compiler.rb#118
|
|
50
|
+
def attribute_builder(type, values); end
|
|
51
|
+
|
|
52
|
+
# source://haml//lib/haml/attribute_compiler.rb#93
|
|
53
|
+
def compile_boolean!(temple, key, values); end
|
|
54
|
+
|
|
55
|
+
# source://haml//lib/haml/attribute_compiler.rb#73
|
|
56
|
+
def compile_class!(temple, key, values); end
|
|
57
|
+
|
|
58
|
+
# source://haml//lib/haml/attribute_compiler.rb#114
|
|
59
|
+
def compile_common!(temple, key, values); end
|
|
60
|
+
|
|
61
|
+
# source://haml//lib/haml/attribute_compiler.rb#82
|
|
62
|
+
def compile_data!(temple, key, values); end
|
|
63
|
+
|
|
64
|
+
# source://haml//lib/haml/attribute_compiler.rb#64
|
|
65
|
+
def compile_id!(temple, key, values); end
|
|
66
|
+
|
|
67
|
+
# source://haml//lib/haml/attribute_compiler.rb#123
|
|
68
|
+
def literal_for(value); end
|
|
69
|
+
|
|
70
|
+
# source://haml//lib/haml/attribute_compiler.rb#30
|
|
71
|
+
def runtime_compile(node); end
|
|
72
|
+
|
|
73
|
+
# source://haml//lib/haml/attribute_compiler.rb#41
|
|
74
|
+
def static_compile(static_hash, dynamic_hashes); end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# source://haml//lib/haml/attribute_parser.rb#5
|
|
78
|
+
class Haml::AttributeParser
|
|
79
|
+
# source://haml//lib/haml/attribute_parser.rb#19
|
|
80
|
+
def parse(text); end
|
|
81
|
+
|
|
82
|
+
private
|
|
83
|
+
|
|
84
|
+
# @raise [ParseSkip]
|
|
85
|
+
#
|
|
86
|
+
# source://haml//lib/haml/attribute_parser.rb#67
|
|
87
|
+
def assert_type!(token, type); end
|
|
88
|
+
|
|
89
|
+
# @yield [attr_tokens]
|
|
90
|
+
#
|
|
91
|
+
# source://haml//lib/haml/attribute_parser.rb#78
|
|
92
|
+
def each_attr(tokens); end
|
|
93
|
+
|
|
94
|
+
# source://haml//lib/haml/attribute_parser.rb#42
|
|
95
|
+
def parse_key!(tokens); end
|
|
96
|
+
|
|
97
|
+
# source://haml//lib/haml/attribute_parser.rb#71
|
|
98
|
+
def skip_until_hash_rocket!(tokens); end
|
|
99
|
+
|
|
100
|
+
# source://haml//lib/haml/attribute_parser.rb#36
|
|
101
|
+
def wrap_bracket(text); end
|
|
102
|
+
|
|
103
|
+
class << self
|
|
104
|
+
# @return [TrueClass, FalseClass] - return true if AttributeParser.parse can be used.
|
|
105
|
+
#
|
|
106
|
+
# source://haml//lib/haml/attribute_parser.rb#10
|
|
107
|
+
def available?; end
|
|
108
|
+
|
|
109
|
+
# source://haml//lib/haml/attribute_parser.rb#15
|
|
110
|
+
def parse(text); end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# source://haml//lib/haml/attribute_parser.rb#6
|
|
115
|
+
class Haml::AttributeParser::ParseSkip < ::StandardError; end
|
|
116
|
+
|
|
117
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#5
|
|
118
|
+
class Haml::Compiler
|
|
119
|
+
# @return [Compiler] a new instance of Compiler
|
|
120
|
+
#
|
|
121
|
+
# source://haml//lib/haml/compiler.rb#13
|
|
122
|
+
def initialize(options = T.unsafe(nil)); end
|
|
123
|
+
|
|
124
|
+
# source://haml//lib/haml/compiler.rb#24
|
|
125
|
+
def call(ast); end
|
|
126
|
+
|
|
127
|
+
private
|
|
128
|
+
|
|
129
|
+
# source://haml//lib/haml/compiler.rb#33
|
|
130
|
+
def compile(node); end
|
|
131
|
+
|
|
132
|
+
# source://haml//lib/haml/compiler.rb#58
|
|
133
|
+
def compile_children(node); end
|
|
134
|
+
|
|
135
|
+
# source://haml//lib/haml/compiler.rb#62
|
|
136
|
+
def compile_comment(node); end
|
|
137
|
+
|
|
138
|
+
# source://haml//lib/haml/compiler.rb#66
|
|
139
|
+
def compile_doctype(node); end
|
|
140
|
+
|
|
141
|
+
# source://haml//lib/haml/compiler.rb#70
|
|
142
|
+
def compile_filter(node); end
|
|
143
|
+
|
|
144
|
+
# source://haml//lib/haml/compiler.rb#74
|
|
145
|
+
def compile_plain(node); end
|
|
146
|
+
|
|
147
|
+
# source://haml//lib/haml/compiler.rb#78
|
|
148
|
+
def compile_script(node); end
|
|
149
|
+
|
|
150
|
+
# source://haml//lib/haml/compiler.rb#82
|
|
151
|
+
def compile_silent_script(node); end
|
|
152
|
+
|
|
153
|
+
# source://haml//lib/haml/compiler.rb#86
|
|
154
|
+
def compile_tag(node); end
|
|
155
|
+
|
|
156
|
+
# source://haml//lib/haml/compiler.rb#90
|
|
157
|
+
def runtime_error(error); end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#6
|
|
161
|
+
class Haml::Compiler::ChildrenCompiler
|
|
162
|
+
# @return [ChildrenCompiler] a new instance of ChildrenCompiler
|
|
163
|
+
#
|
|
164
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#7
|
|
165
|
+
def initialize; end
|
|
166
|
+
|
|
167
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#12
|
|
168
|
+
def compile(node, &block); end
|
|
169
|
+
|
|
170
|
+
private
|
|
171
|
+
|
|
172
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#125
|
|
173
|
+
def find_else_index(temple); end
|
|
174
|
+
|
|
175
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#29
|
|
176
|
+
def insert_newlines!(temple, node); end
|
|
177
|
+
|
|
178
|
+
# @return [Boolean]
|
|
179
|
+
#
|
|
180
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#137
|
|
181
|
+
def insert_whitespace?(node); end
|
|
182
|
+
|
|
183
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#37
|
|
184
|
+
def moving_lineno(node, &block); end
|
|
185
|
+
|
|
186
|
+
# @return [Boolean]
|
|
187
|
+
#
|
|
188
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#65
|
|
189
|
+
def nuke_inner_whitespace?(node); end
|
|
190
|
+
|
|
191
|
+
# @return [Boolean]
|
|
192
|
+
#
|
|
193
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#87
|
|
194
|
+
def nuke_outer_whitespace?(node); end
|
|
195
|
+
|
|
196
|
+
# @return [Boolean]
|
|
197
|
+
#
|
|
198
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#76
|
|
199
|
+
def nuke_prev_whitespace?(node); end
|
|
200
|
+
|
|
201
|
+
# @return [Boolean]
|
|
202
|
+
#
|
|
203
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#60
|
|
204
|
+
def prepend_whitespace?(node); end
|
|
205
|
+
|
|
206
|
+
# source://haml//lib/haml/compiler/children_compiler.rb#92
|
|
207
|
+
def rstrip_whitespace!(temple); end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# source://haml//lib/haml/compiler/comment_compiler.rb#4
|
|
211
|
+
class Haml::Compiler::CommentCompiler
|
|
212
|
+
# source://haml//lib/haml/compiler/comment_compiler.rb#5
|
|
213
|
+
def compile(node, &block); end
|
|
214
|
+
|
|
215
|
+
private
|
|
216
|
+
|
|
217
|
+
# source://haml//lib/haml/compiler/comment_compiler.rb#23
|
|
218
|
+
def compile_conditional_comment(node, &block); end
|
|
219
|
+
|
|
220
|
+
# source://haml//lib/haml/compiler/comment_compiler.rb#15
|
|
221
|
+
def compile_html_comment(node, &block); end
|
|
222
|
+
|
|
223
|
+
# source://haml//lib/haml/compiler/comment_compiler.rb#38
|
|
224
|
+
def compile_text(node); end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# source://haml//lib/haml/compiler/doctype_compiler.rb#4
|
|
228
|
+
class Haml::Compiler::DoctypeCompiler
|
|
229
|
+
# @return [DoctypeCompiler] a new instance of DoctypeCompiler
|
|
230
|
+
#
|
|
231
|
+
# source://haml//lib/haml/compiler/doctype_compiler.rb#5
|
|
232
|
+
def initialize(options = T.unsafe(nil)); end
|
|
233
|
+
|
|
234
|
+
# source://haml//lib/haml/compiler/doctype_compiler.rb#9
|
|
235
|
+
def compile(node); end
|
|
236
|
+
|
|
237
|
+
private
|
|
238
|
+
|
|
239
|
+
# source://haml//lib/haml/compiler/doctype_compiler.rb#22
|
|
240
|
+
def html_doctype(node); end
|
|
241
|
+
|
|
242
|
+
# source://haml//lib/haml/compiler/doctype_compiler.rb#36
|
|
243
|
+
def xml_doctype; end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#8
|
|
247
|
+
class Haml::Compiler::ScriptCompiler
|
|
248
|
+
# @return [ScriptCompiler] a new instance of ScriptCompiler
|
|
249
|
+
#
|
|
250
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#18
|
|
251
|
+
def initialize(identity, options); end
|
|
252
|
+
|
|
253
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#23
|
|
254
|
+
def compile(node, &block); end
|
|
255
|
+
|
|
256
|
+
private
|
|
257
|
+
|
|
258
|
+
# String-interpolated plain text must be compiled with this method
|
|
259
|
+
# because we have to escape only interpolated values.
|
|
260
|
+
#
|
|
261
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#45
|
|
262
|
+
def compile_interpolated_plain(node); end
|
|
263
|
+
|
|
264
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#82
|
|
265
|
+
def compile_script_assign(var, node, &block); end
|
|
266
|
+
|
|
267
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#98
|
|
268
|
+
def compile_script_result(result, node); end
|
|
269
|
+
|
|
270
|
+
# :dynamic is optimized in other filter: StringSplitter
|
|
271
|
+
#
|
|
272
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#59
|
|
273
|
+
def delegate_optimization(node); end
|
|
274
|
+
|
|
275
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#76
|
|
276
|
+
def dynamic_compile(node, &block); end
|
|
277
|
+
|
|
278
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#109
|
|
279
|
+
def escape_html(temple); end
|
|
280
|
+
|
|
281
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#105
|
|
282
|
+
def find_and_preserve(code); end
|
|
283
|
+
|
|
284
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#66
|
|
285
|
+
def static_compile(node); end
|
|
286
|
+
|
|
287
|
+
class << self
|
|
288
|
+
# source://haml//lib/haml/compiler/script_compiler.rb#9
|
|
289
|
+
def find_and_preserve(input, tags); end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# source://haml//lib/haml/compiler/silent_script_compiler.rb#4
|
|
294
|
+
class Haml::Compiler::SilentScriptCompiler
|
|
295
|
+
# source://haml//lib/haml/compiler/silent_script_compiler.rb#5
|
|
296
|
+
def compile(node, &block); end
|
|
297
|
+
|
|
298
|
+
private
|
|
299
|
+
|
|
300
|
+
# source://haml//lib/haml/compiler/silent_script_compiler.rb#15
|
|
301
|
+
def compile_with_children(node, &block); end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# source://haml//lib/haml/compiler/tag_compiler.rb#8
|
|
305
|
+
class Haml::Compiler::TagCompiler
|
|
306
|
+
# @return [TagCompiler] a new instance of TagCompiler
|
|
307
|
+
#
|
|
308
|
+
# source://haml//lib/haml/compiler/tag_compiler.rb#9
|
|
309
|
+
def initialize(identity, options); end
|
|
310
|
+
|
|
311
|
+
# source://haml//lib/haml/compiler/tag_compiler.rb#15
|
|
312
|
+
def compile(node, &block); end
|
|
313
|
+
|
|
314
|
+
private
|
|
315
|
+
|
|
316
|
+
# source://haml//lib/haml/compiler/tag_compiler.rb#23
|
|
317
|
+
def compile_contents(node, &block); end
|
|
318
|
+
|
|
319
|
+
# We should handle interpolation here to escape only interpolated values.
|
|
320
|
+
#
|
|
321
|
+
# source://haml//lib/haml/compiler/tag_compiler.rb#57
|
|
322
|
+
def compile_interpolated_plain(node); end
|
|
323
|
+
|
|
324
|
+
# :dynamic is optimized in other filters: StringSplitter or StaticAnalyzer
|
|
325
|
+
#
|
|
326
|
+
# source://haml//lib/haml/compiler/tag_compiler.rb#49
|
|
327
|
+
def delegate_optimization(node); end
|
|
328
|
+
|
|
329
|
+
# @return [Boolean]
|
|
330
|
+
#
|
|
331
|
+
# source://haml//lib/haml/compiler/tag_compiler.rb#70
|
|
332
|
+
def self_closing?(node); end
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Compile [:multi, [:static, 'foo'], [:dynamic, 'bar']] to [:dynamic, '"foo#{bar}"']
|
|
336
|
+
#
|
|
337
|
+
# source://haml//lib/haml/dynamic_merger.rb#4
|
|
338
|
+
class Haml::DynamicMerger < ::Temple::Filter
|
|
339
|
+
# source://haml//lib/haml/dynamic_merger.rb#5
|
|
340
|
+
def on_multi(*exps); end
|
|
341
|
+
|
|
342
|
+
private
|
|
343
|
+
|
|
344
|
+
# source://haml//lib/haml/dynamic_merger.rb#55
|
|
345
|
+
def count_newline(exps); end
|
|
346
|
+
|
|
347
|
+
# source://haml//lib/haml/dynamic_merger.rb#33
|
|
348
|
+
def merge_dynamic(exps); end
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# source://haml//lib/haml/engine.rb#15
|
|
352
|
+
class Haml::Engine < ::Temple::Engine; end
|
|
353
|
+
|
|
354
|
+
# source://haml//lib/haml/error.rb#3
|
|
355
|
+
class Haml::Error < ::StandardError
|
|
356
|
+
# @param message [String] The error message
|
|
357
|
+
# @param line [Fixnum] See \{#line}
|
|
358
|
+
# @return [Error] a new instance of Error
|
|
359
|
+
#
|
|
360
|
+
# source://haml//lib/haml/error.rb#49
|
|
361
|
+
def initialize(message = T.unsafe(nil), line = T.unsafe(nil)); end
|
|
362
|
+
|
|
363
|
+
# The line of the template on which the error occurred.
|
|
364
|
+
#
|
|
365
|
+
# @return [Fixnum]
|
|
366
|
+
#
|
|
367
|
+
# source://haml//lib/haml/error.rb#45
|
|
368
|
+
def line; end
|
|
369
|
+
|
|
370
|
+
class << self
|
|
371
|
+
# source://haml//lib/haml/error.rb#37
|
|
372
|
+
def message(key, *args); end
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# source://haml//lib/haml/error.rb#4
|
|
377
|
+
Haml::Error::MESSAGES = T.let(T.unsafe(nil), Hash)
|
|
378
|
+
|
|
379
|
+
# source://haml//lib/haml/escape.rb#5
|
|
380
|
+
class Haml::Escape < ::Temple::Filters::Escapable
|
|
381
|
+
# @return [Escape] a new instance of Escape
|
|
382
|
+
#
|
|
383
|
+
# source://haml//lib/haml/escape.rb#6
|
|
384
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# Unlike Haml::Escape, this calls to_s when not escaped.
|
|
388
|
+
#
|
|
389
|
+
# source://haml//lib/haml/escape_any.rb#14
|
|
390
|
+
class Haml::EscapeAny < ::Haml::Escape
|
|
391
|
+
# source://haml//lib/haml/escape_any.rb#17
|
|
392
|
+
def on_dynamic(value); end
|
|
393
|
+
|
|
394
|
+
# source://temple/0.10.0/lib/temple/filters/escapable.rb#23
|
|
395
|
+
def on_escapeany(flag, exp); end
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# This module allows Temple::Filter to dispatch :fescape on `#compile`.
|
|
399
|
+
#
|
|
400
|
+
# source://haml//lib/haml/escape_any.rb#6
|
|
401
|
+
module Haml::EscapeanyDispathcer
|
|
402
|
+
# source://haml//lib/haml/escape_any.rb#7
|
|
403
|
+
def on_escapeany(flag, exp); end
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# This module allows Temple::Filter to dispatch :fescape on `#compile`.
|
|
407
|
+
#
|
|
408
|
+
# source://haml//lib/haml/force_escape.rb#6
|
|
409
|
+
module Haml::FescapeDispathcer
|
|
410
|
+
# source://haml//lib/haml/force_escape.rb#7
|
|
411
|
+
def on_fescape(flag, exp); end
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# An invalid filter name was used.
|
|
415
|
+
#
|
|
416
|
+
# source://haml//lib/haml/error.rb#62
|
|
417
|
+
class Haml::FilterNotFound < ::Haml::Error; end
|
|
418
|
+
|
|
419
|
+
# source://haml//lib/haml/filters/base.rb#5
|
|
420
|
+
class Haml::Filters
|
|
421
|
+
# @return [Filters] a new instance of Filters
|
|
422
|
+
#
|
|
423
|
+
# source://haml//lib/haml/filters.rb#55
|
|
424
|
+
def initialize(options = T.unsafe(nil)); end
|
|
425
|
+
|
|
426
|
+
# source://haml//lib/haml/filters.rb#60
|
|
427
|
+
def compile(node); end
|
|
428
|
+
|
|
429
|
+
private
|
|
430
|
+
|
|
431
|
+
# @raise [FilterNotFound]
|
|
432
|
+
#
|
|
433
|
+
# source://haml//lib/haml/filters.rb#67
|
|
434
|
+
def find_compiler(node); end
|
|
435
|
+
|
|
436
|
+
class << self
|
|
437
|
+
# Returns the value of attribute registered.
|
|
438
|
+
#
|
|
439
|
+
# source://haml//lib/haml/filters.rb#24
|
|
440
|
+
def registered; end
|
|
441
|
+
|
|
442
|
+
# source://haml//lib/haml/filters.rb#26
|
|
443
|
+
def remove_filter(name); end
|
|
444
|
+
|
|
445
|
+
private
|
|
446
|
+
|
|
447
|
+
# source://haml//lib/haml/filters.rb#35
|
|
448
|
+
def register(name, compiler); end
|
|
449
|
+
end
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# source://haml//lib/haml/filters/base.rb#6
|
|
453
|
+
class Haml::Filters::Base
|
|
454
|
+
# @return [Base] a new instance of Base
|
|
455
|
+
#
|
|
456
|
+
# source://haml//lib/haml/filters/base.rb#7
|
|
457
|
+
def initialize(options = T.unsafe(nil)); end
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# source://haml//lib/haml/filters/cdata.rb#4
|
|
461
|
+
class Haml::Filters::Cdata < ::Haml::Filters::TextBase
|
|
462
|
+
# source://haml//lib/haml/filters/cdata.rb#5
|
|
463
|
+
def compile(node); end
|
|
464
|
+
|
|
465
|
+
private
|
|
466
|
+
|
|
467
|
+
# source://haml//lib/haml/filters/cdata.rb#11
|
|
468
|
+
def compile_cdata(node); end
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# source://haml//lib/haml/filters/coffee.rb#4
|
|
472
|
+
class Haml::Filters::Coffee < ::Haml::Filters::TiltBase
|
|
473
|
+
# source://haml//lib/haml/filters/coffee.rb#5
|
|
474
|
+
def compile(node); end
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# source://haml//lib/haml/filters/coffee.rb#15
|
|
478
|
+
Haml::Filters::CoffeeScript = Haml::Filters::Coffee
|
|
479
|
+
|
|
480
|
+
# source://haml//lib/haml/filters/css.rb#4
|
|
481
|
+
class Haml::Filters::Css < ::Haml::Filters::TextBase
|
|
482
|
+
# source://haml//lib/haml/filters/css.rb#5
|
|
483
|
+
def compile(node); end
|
|
484
|
+
|
|
485
|
+
private
|
|
486
|
+
|
|
487
|
+
# source://haml//lib/haml/filters/css.rb#16
|
|
488
|
+
def compile_html(node); end
|
|
489
|
+
|
|
490
|
+
# source://haml//lib/haml/filters/css.rb#24
|
|
491
|
+
def compile_xhtml(node); end
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# source://haml//lib/haml/filters/erb.rb#4
|
|
495
|
+
class Haml::Filters::Erb < ::Haml::Filters::TiltBase
|
|
496
|
+
# source://haml//lib/haml/filters/erb.rb#5
|
|
497
|
+
def compile(node); end
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# source://haml//lib/haml/filters/escaped.rb#4
|
|
501
|
+
class Haml::Filters::Escaped < ::Haml::Filters::Base
|
|
502
|
+
# source://haml//lib/haml/filters/escaped.rb#5
|
|
503
|
+
def compile(node); end
|
|
504
|
+
|
|
505
|
+
private
|
|
506
|
+
|
|
507
|
+
# source://haml//lib/haml/filters/escaped.rb#13
|
|
508
|
+
def compile_text(text); end
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# source://haml//lib/haml/filters/javascript.rb#4
|
|
512
|
+
class Haml::Filters::Javascript < ::Haml::Filters::TextBase
|
|
513
|
+
# source://haml//lib/haml/filters/javascript.rb#5
|
|
514
|
+
def compile(node); end
|
|
515
|
+
|
|
516
|
+
private
|
|
517
|
+
|
|
518
|
+
# source://haml//lib/haml/filters/javascript.rb#16
|
|
519
|
+
def compile_html(node); end
|
|
520
|
+
|
|
521
|
+
# source://haml//lib/haml/filters/javascript.rb#24
|
|
522
|
+
def compile_xhtml(node); end
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# source://haml//lib/haml/filters/less.rb#9
|
|
526
|
+
class Haml::Filters::Less < ::Haml::Filters::TiltBase
|
|
527
|
+
# source://haml//lib/haml/filters/less.rb#10
|
|
528
|
+
def compile(node); end
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
# source://haml//lib/haml/filters/markdown.rb#4
|
|
532
|
+
class Haml::Filters::Markdown < ::Haml::Filters::TiltBase
|
|
533
|
+
# source://haml//lib/haml/filters/markdown.rb#5
|
|
534
|
+
def compile(node); end
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# source://haml//lib/haml/filters/plain.rb#6
|
|
538
|
+
class Haml::Filters::Plain < ::Haml::Filters::Base
|
|
539
|
+
# source://haml//lib/haml/filters/plain.rb#7
|
|
540
|
+
def compile(node); end
|
|
541
|
+
|
|
542
|
+
private
|
|
543
|
+
|
|
544
|
+
# source://haml//lib/haml/filters/plain.rb#15
|
|
545
|
+
def compile_plain(text); end
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
# source://haml//lib/haml/filters/preserve.rb#4
|
|
549
|
+
class Haml::Filters::Preserve < ::Haml::Filters::Base
|
|
550
|
+
# source://haml//lib/haml/filters/preserve.rb#5
|
|
551
|
+
def compile(node); end
|
|
552
|
+
|
|
553
|
+
private
|
|
554
|
+
|
|
555
|
+
# source://haml//lib/haml/filters/preserve.rb#13
|
|
556
|
+
def compile_text(text); end
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# source://haml//lib/haml/filters/ruby.rb#4
|
|
560
|
+
class Haml::Filters::Ruby < ::Haml::Filters::Base
|
|
561
|
+
# source://haml//lib/haml/filters/ruby.rb#5
|
|
562
|
+
def compile(node); end
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
# source://haml//lib/haml/filters/sass.rb#4
|
|
566
|
+
class Haml::Filters::Sass < ::Haml::Filters::TiltBase
|
|
567
|
+
# source://haml//lib/haml/filters/sass.rb#5
|
|
568
|
+
def compile(node); end
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
# source://haml//lib/haml/filters/scss.rb#4
|
|
572
|
+
class Haml::Filters::Scss < ::Haml::Filters::TiltBase
|
|
573
|
+
# source://haml//lib/haml/filters/scss.rb#5
|
|
574
|
+
def compile(node); end
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# source://haml//lib/haml/filters/text_base.rb#4
|
|
578
|
+
class Haml::Filters::TextBase < ::Haml::Filters::Base
|
|
579
|
+
# source://haml//lib/haml/filters/text_base.rb#5
|
|
580
|
+
def compile_text!(temple, node, prefix); end
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# source://haml//lib/haml/filters/tilt_base.rb#6
|
|
584
|
+
class Haml::Filters::TiltBase < ::Haml::Filters::Base
|
|
585
|
+
# @return [Boolean]
|
|
586
|
+
#
|
|
587
|
+
# source://haml//lib/haml/filters/tilt_base.rb#17
|
|
588
|
+
def explicit_require?(needed_registration); end
|
|
589
|
+
|
|
590
|
+
private
|
|
591
|
+
|
|
592
|
+
# source://haml//lib/haml/filters/tilt_base.rb#30
|
|
593
|
+
def compile_with_tilt(node, name, indent_width: T.unsafe(nil)); end
|
|
594
|
+
|
|
595
|
+
# source://haml//lib/haml/filters/tilt_base.rb#46
|
|
596
|
+
def dynamic_compile(node, name, indent_width: T.unsafe(nil)); end
|
|
597
|
+
|
|
598
|
+
# TODO: support interpolation
|
|
599
|
+
#
|
|
600
|
+
# source://haml//lib/haml/filters/tilt_base.rb#25
|
|
601
|
+
def precompiled_with_tilt(node, name); end
|
|
602
|
+
|
|
603
|
+
# source://haml//lib/haml/filters/tilt_base.rb#38
|
|
604
|
+
def static_compile(node, name, indent_width: T.unsafe(nil)); end
|
|
605
|
+
|
|
606
|
+
class << self
|
|
607
|
+
# source://haml//lib/haml/filters/tilt_base.rb#7
|
|
608
|
+
def render(name, source, indent_width: T.unsafe(nil)); end
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
# Unlike Haml::Escape, this escapes value even if it's html_safe.
|
|
613
|
+
#
|
|
614
|
+
# source://haml//lib/haml/force_escape.rb#14
|
|
615
|
+
class Haml::ForceEscape < ::Haml::Escape
|
|
616
|
+
# @return [ForceEscape] a new instance of ForceEscape
|
|
617
|
+
#
|
|
618
|
+
# source://haml//lib/haml/force_escape.rb#15
|
|
619
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
620
|
+
|
|
621
|
+
# ForceEscape doesn't touch :escape expression.
|
|
622
|
+
# This method is not used if it's inserted after Haml::Escape.
|
|
623
|
+
#
|
|
624
|
+
# source://haml//lib/haml/force_escape.rb#25
|
|
625
|
+
def on_escape(flag, exp); end
|
|
626
|
+
|
|
627
|
+
# source://temple/0.10.0/lib/temple/filters/escapable.rb#23
|
|
628
|
+
def on_fescape(flag, exp); end
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# source://haml//lib/haml/html.rb#3
|
|
632
|
+
class Haml::HTML < ::Temple::HTML::Fast
|
|
633
|
+
# @return [HTML] a new instance of HTML
|
|
634
|
+
#
|
|
635
|
+
# source://haml//lib/haml/html.rb#6
|
|
636
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
637
|
+
|
|
638
|
+
# This dispatcher supports Haml's "revealed" conditional comment.
|
|
639
|
+
#
|
|
640
|
+
# source://haml//lib/haml/html.rb#15
|
|
641
|
+
def on_html_condcomment(condition, content, revealed = T.unsafe(nil)); end
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
# source://haml//lib/haml/html.rb#4
|
|
645
|
+
Haml::HTML::DEPRECATED_FORMATS = T.let(T.unsafe(nil), Array)
|
|
646
|
+
|
|
647
|
+
# source://haml//lib/haml/helpers.rb#3
|
|
648
|
+
module Haml::Helpers
|
|
649
|
+
# source://haml//lib/haml/helpers.rb#11
|
|
650
|
+
def preserve(input); end
|
|
651
|
+
|
|
652
|
+
class << self
|
|
653
|
+
# source://haml//lib/haml/helpers.rb#4
|
|
654
|
+
def preserve(input); end
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
# source://haml//lib/haml/identity.rb#3
|
|
659
|
+
class Haml::Identity
|
|
660
|
+
# @return [Identity] a new instance of Identity
|
|
661
|
+
#
|
|
662
|
+
# source://haml//lib/haml/identity.rb#4
|
|
663
|
+
def initialize; end
|
|
664
|
+
|
|
665
|
+
# source://haml//lib/haml/identity.rb#8
|
|
666
|
+
def generate; end
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
# InternalError means that you hit a bug of Haml itself.
|
|
670
|
+
#
|
|
671
|
+
# source://haml//lib/haml/error.rb#65
|
|
672
|
+
class Haml::InternalError < ::Haml::Error; end
|
|
673
|
+
|
|
674
|
+
# source://haml//lib/haml/object_ref.rb#3
|
|
675
|
+
module Haml::ObjectRef
|
|
676
|
+
class << self
|
|
677
|
+
# source://haml//lib/haml/object_ref.rb#5
|
|
678
|
+
def parse(args); end
|
|
679
|
+
|
|
680
|
+
private
|
|
681
|
+
|
|
682
|
+
# Haml::Buffer.underscore
|
|
683
|
+
#
|
|
684
|
+
# source://haml//lib/haml/object_ref.rb#24
|
|
685
|
+
def underscore(camel_cased_word); end
|
|
686
|
+
end
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
# source://haml//lib/haml/parser.rb#9
|
|
690
|
+
class Haml::Parser
|
|
691
|
+
include ::Haml::Util
|
|
692
|
+
|
|
693
|
+
# @return [Parser] a new instance of Parser
|
|
694
|
+
#
|
|
695
|
+
# source://haml//lib/haml/parser.rb#99
|
|
696
|
+
def initialize(options); end
|
|
697
|
+
|
|
698
|
+
# source://haml//lib/haml/parser.rb#112
|
|
699
|
+
def call(template); end
|
|
700
|
+
|
|
701
|
+
# @raise [SyntaxError]
|
|
702
|
+
#
|
|
703
|
+
# source://haml//lib/haml/parser.rb#169
|
|
704
|
+
def compute_tabs(line); end
|
|
705
|
+
|
|
706
|
+
# Returns the value of attribute root.
|
|
707
|
+
#
|
|
708
|
+
# source://haml//lib/haml/parser.rb#12
|
|
709
|
+
def root; end
|
|
710
|
+
|
|
711
|
+
private
|
|
712
|
+
|
|
713
|
+
# source://haml//lib/haml/parser.rb#844
|
|
714
|
+
def balance(*args); end
|
|
715
|
+
|
|
716
|
+
# Unlike #balance, this balances Ripper tokens to balance something like `{ a: "}" }` correctly.
|
|
717
|
+
#
|
|
718
|
+
# @raise [SyntaxError]
|
|
719
|
+
#
|
|
720
|
+
# source://haml//lib/haml/parser.rb#849
|
|
721
|
+
def balance_tokens(buf, start, finish, count: T.unsafe(nil)); end
|
|
722
|
+
|
|
723
|
+
# source://haml//lib/haml/parser.rb#316
|
|
724
|
+
def block_keyword(text); end
|
|
725
|
+
|
|
726
|
+
# @return [Boolean]
|
|
727
|
+
#
|
|
728
|
+
# source://haml//lib/haml/parser.rb#867
|
|
729
|
+
def block_opened?; end
|
|
730
|
+
|
|
731
|
+
# source://haml//lib/haml/parser.rb#387
|
|
732
|
+
def check_push_script_stack(keyword); end
|
|
733
|
+
|
|
734
|
+
# source://haml//lib/haml/parser.rb#543
|
|
735
|
+
def close; end
|
|
736
|
+
|
|
737
|
+
# source://haml//lib/haml/parser.rb#549
|
|
738
|
+
def close_filter(_); end
|
|
739
|
+
|
|
740
|
+
# source://haml//lib/haml/parser.rb#557
|
|
741
|
+
def close_flat_section; end
|
|
742
|
+
|
|
743
|
+
# source://haml//lib/haml/parser.rb#553
|
|
744
|
+
def close_haml_comment(_); end
|
|
745
|
+
|
|
746
|
+
# source://haml//lib/haml/parser.rb#563
|
|
747
|
+
def close_script(node); end
|
|
748
|
+
|
|
749
|
+
# source://haml//lib/haml/parser.rb#563
|
|
750
|
+
def close_silent_script(node); end
|
|
751
|
+
|
|
752
|
+
# @return [Boolean]
|
|
753
|
+
#
|
|
754
|
+
# source://haml//lib/haml/parser.rb#798
|
|
755
|
+
def closes_flat?(line); end
|
|
756
|
+
|
|
757
|
+
# Renders an XHTML comment.
|
|
758
|
+
#
|
|
759
|
+
# source://haml//lib/haml/parser.rb#498
|
|
760
|
+
def comment(text); end
|
|
761
|
+
|
|
762
|
+
# @return [Boolean]
|
|
763
|
+
#
|
|
764
|
+
# source://haml//lib/haml/parser.rb#267
|
|
765
|
+
def continuation_script?(text); end
|
|
766
|
+
|
|
767
|
+
# Renders a line that creates an XHTML tag and has an implicit div because of
|
|
768
|
+
# `.` or `#`.
|
|
769
|
+
#
|
|
770
|
+
# source://haml//lib/haml/parser.rb#492
|
|
771
|
+
def div(line); end
|
|
772
|
+
|
|
773
|
+
# Renders an XHTML doctype or XML shebang.
|
|
774
|
+
#
|
|
775
|
+
# @raise [SyntaxError]
|
|
776
|
+
#
|
|
777
|
+
# source://haml//lib/haml/parser.rb#524
|
|
778
|
+
def doctype(text); end
|
|
779
|
+
|
|
780
|
+
# source://haml//lib/haml/parser.rb#196
|
|
781
|
+
def error_with_lineno(error); end
|
|
782
|
+
|
|
783
|
+
# @raise [Error]
|
|
784
|
+
#
|
|
785
|
+
# source://haml//lib/haml/parser.rb#530
|
|
786
|
+
def filter(name); end
|
|
787
|
+
|
|
788
|
+
# Same semantics as block_opened?, except that block_opened? uses Line#tabs,
|
|
789
|
+
# which doesn't interact well with filter lines
|
|
790
|
+
#
|
|
791
|
+
# @return [Boolean]
|
|
792
|
+
#
|
|
793
|
+
# source://haml//lib/haml/parser.rb#873
|
|
794
|
+
def filter_opened?; end
|
|
795
|
+
|
|
796
|
+
# @return [Boolean]
|
|
797
|
+
#
|
|
798
|
+
# source://haml//lib/haml/parser.rb#877
|
|
799
|
+
def flat?; end
|
|
800
|
+
|
|
801
|
+
# @raise [SyntaxError]
|
|
802
|
+
#
|
|
803
|
+
# source://haml//lib/haml/parser.rb#352
|
|
804
|
+
def flat_script(line, escape_html = T.unsafe(nil)); end
|
|
805
|
+
|
|
806
|
+
# source://haml//lib/haml/parser.rb#397
|
|
807
|
+
def haml_comment(text); end
|
|
808
|
+
|
|
809
|
+
# source://haml//lib/haml/parser.rb#802
|
|
810
|
+
def handle_multiline(line); end
|
|
811
|
+
|
|
812
|
+
# source://haml//lib/haml/parser.rb#820
|
|
813
|
+
def handle_ruby_multiline(line); end
|
|
814
|
+
|
|
815
|
+
# Checks whether or not `line` is in a multiline sequence.
|
|
816
|
+
#
|
|
817
|
+
# @return [Boolean]
|
|
818
|
+
#
|
|
819
|
+
# source://haml//lib/haml/parser.rb#816
|
|
820
|
+
def is_multiline?(text); end
|
|
821
|
+
|
|
822
|
+
# `text' is a Ruby multiline block if it:
|
|
823
|
+
# - ends with a comma
|
|
824
|
+
# - but not "?," which is a character literal
|
|
825
|
+
# (however, "x?," is a method call and not a literal)
|
|
826
|
+
# - and not "?\," which is a character literal
|
|
827
|
+
#
|
|
828
|
+
# @return [Boolean]
|
|
829
|
+
#
|
|
830
|
+
# source://haml//lib/haml/parser.rb#839
|
|
831
|
+
def is_ruby_multiline?(text); end
|
|
832
|
+
|
|
833
|
+
# @return [Boolean]
|
|
834
|
+
#
|
|
835
|
+
# source://haml//lib/haml/parser.rb#271
|
|
836
|
+
def mid_block_keyword?(text); end
|
|
837
|
+
|
|
838
|
+
# source://haml//lib/haml/parser.rb#780
|
|
839
|
+
def next_line; end
|
|
840
|
+
|
|
841
|
+
# source://haml//lib/haml/parser.rb#751
|
|
842
|
+
def parse_new_attribute(scanner); end
|
|
843
|
+
|
|
844
|
+
# @return [Array<Hash,String,nil>] - [static_attributes (Hash), dynamic_attributes (nil or String starting with `{` and ending with `}`)]
|
|
845
|
+
# @return [String] rest
|
|
846
|
+
# @return [Integer] last_line
|
|
847
|
+
#
|
|
848
|
+
# source://haml//lib/haml/parser.rb#710
|
|
849
|
+
def parse_new_attributes(text); end
|
|
850
|
+
|
|
851
|
+
# @return [String] attributes_hash - Hash literal starting with `{` and ending with `}`
|
|
852
|
+
# @return [String] rest
|
|
853
|
+
# @return [Integer] last_line
|
|
854
|
+
#
|
|
855
|
+
# source://haml//lib/haml/parser.rb#682
|
|
856
|
+
def parse_old_attributes(text); end
|
|
857
|
+
|
|
858
|
+
# This method doesn't use Haml::HamlAttributeParser because currently it depends on Ripper and Rubinius doesn't provide it.
|
|
859
|
+
# Ideally this logic should be placed in Haml::HamlAttributeParser instead of here and this method should use it.
|
|
860
|
+
#
|
|
861
|
+
# @param text [String] - Hash literal or text inside old attributes
|
|
862
|
+
# @return [Hash, nil] - Return nil if text is not static Hash literal
|
|
863
|
+
#
|
|
864
|
+
# source://haml//lib/haml/parser.rb#609
|
|
865
|
+
def parse_static_hash(text); end
|
|
866
|
+
|
|
867
|
+
# Parses a line into tag_name, attributes, attributes_hash, object_ref, action, value
|
|
868
|
+
#
|
|
869
|
+
# @raise [SyntaxError]
|
|
870
|
+
#
|
|
871
|
+
# source://haml//lib/haml/parser.rb#627
|
|
872
|
+
def parse_tag(text); end
|
|
873
|
+
|
|
874
|
+
# source://haml//lib/haml/parser.rb#326
|
|
875
|
+
def plain(line, escape_html = T.unsafe(nil)); end
|
|
876
|
+
|
|
877
|
+
# Processes and deals with lowering indentation.
|
|
878
|
+
#
|
|
879
|
+
# source://haml//lib/haml/parser.rb#260
|
|
880
|
+
def process_indent(line); end
|
|
881
|
+
|
|
882
|
+
# Processes a single line of Haml.
|
|
883
|
+
#
|
|
884
|
+
# This method doesn't return anything; it simply processes the line and
|
|
885
|
+
# adds the appropriate code to `@precompiled`.
|
|
886
|
+
#
|
|
887
|
+
# source://haml//lib/haml/parser.rb#279
|
|
888
|
+
def process_line(line); end
|
|
889
|
+
|
|
890
|
+
# source://haml//lib/haml/parser.rb#321
|
|
891
|
+
def push(node); end
|
|
892
|
+
|
|
893
|
+
# @raise [SyntaxError]
|
|
894
|
+
#
|
|
895
|
+
# source://haml//lib/haml/parser.rb#340
|
|
896
|
+
def script(line, escape_html = T.unsafe(nil), preserve = T.unsafe(nil)); end
|
|
897
|
+
|
|
898
|
+
# @raise [SyntaxError]
|
|
899
|
+
#
|
|
900
|
+
# source://haml//lib/haml/parser.rb#357
|
|
901
|
+
def silent_script(line); end
|
|
902
|
+
|
|
903
|
+
# @raise [SyntaxError]
|
|
904
|
+
#
|
|
905
|
+
# source://haml//lib/haml/parser.rb#410
|
|
906
|
+
def tag(line); end
|
|
907
|
+
|
|
908
|
+
class << self
|
|
909
|
+
# This is a class method so it can be accessed from {Haml::HamlHelpers}.
|
|
910
|
+
#
|
|
911
|
+
# Iterates through the classes and ids supplied through `.`
|
|
912
|
+
# and `#` syntax, and returns a hash with them as attributes,
|
|
913
|
+
# that can then be merged with another attributes hash.
|
|
914
|
+
#
|
|
915
|
+
# source://haml//lib/haml/parser.rb#585
|
|
916
|
+
def parse_class_and_id(list); end
|
|
917
|
+
end
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
# source://haml//lib/haml/parser.rb#85
|
|
921
|
+
Haml::Parser::BLOCK_KEYWORD_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
922
|
+
|
|
923
|
+
# Regex to check for blocks with spaces around arguments. Not to be confused
|
|
924
|
+
# with multiline script.
|
|
925
|
+
# For example:
|
|
926
|
+
# foo.each do | bar |
|
|
927
|
+
# = bar
|
|
928
|
+
#
|
|
929
|
+
# source://haml//lib/haml/parser.rb#79
|
|
930
|
+
Haml::Parser::BLOCK_WITH_SPACES = T.let(T.unsafe(nil), Regexp)
|
|
931
|
+
|
|
932
|
+
# source://haml//lib/haml/parser.rb#94
|
|
933
|
+
Haml::Parser::CLASS_KEY = T.let(T.unsafe(nil), String)
|
|
934
|
+
|
|
935
|
+
# Designates an XHTML/XML comment.
|
|
936
|
+
#
|
|
937
|
+
# source://haml//lib/haml/parser.rb#24
|
|
938
|
+
Haml::Parser::COMMENT = T.let(T.unsafe(nil), String)
|
|
939
|
+
|
|
940
|
+
# Designates a `<div>` element with the given class.
|
|
941
|
+
#
|
|
942
|
+
# source://haml//lib/haml/parser.rb#18
|
|
943
|
+
Haml::Parser::DIV_CLASS = T.let(T.unsafe(nil), String)
|
|
944
|
+
|
|
945
|
+
# Designates a `<div>` element with the given id.
|
|
946
|
+
#
|
|
947
|
+
# source://haml//lib/haml/parser.rb#21
|
|
948
|
+
Haml::Parser::DIV_ID = T.let(T.unsafe(nil), String)
|
|
949
|
+
|
|
950
|
+
# Designates an XHTML doctype or script that is never HTML-escaped.
|
|
951
|
+
#
|
|
952
|
+
# source://haml//lib/haml/parser.rb#27
|
|
953
|
+
Haml::Parser::DOCTYPE = T.let(T.unsafe(nil), String)
|
|
954
|
+
|
|
955
|
+
# The Regex that matches a Doctype command.
|
|
956
|
+
#
|
|
957
|
+
# source://haml//lib/haml/parser.rb#88
|
|
958
|
+
Haml::Parser::DOCTYPE_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
959
|
+
|
|
960
|
+
# @param new [String] - Hash literal including dynamic values.
|
|
961
|
+
# @param old [String] - Hash literal including dynamic values or Ruby literal of multiple Hashes which MUST be interpreted as method's last arguments.
|
|
962
|
+
#
|
|
963
|
+
# source://haml//lib/haml/parser.rb#236
|
|
964
|
+
class Haml::Parser::DynamicAttributes < ::Struct
|
|
965
|
+
# Returns the value of attribute new
|
|
966
|
+
#
|
|
967
|
+
# @return [Object] the current value of new
|
|
968
|
+
def new; end
|
|
969
|
+
|
|
970
|
+
# Sets the attribute new
|
|
971
|
+
#
|
|
972
|
+
# @param value [Object] the value to set the attribute new to.
|
|
973
|
+
# @return [Object] the newly set value
|
|
974
|
+
def new=(_); end
|
|
975
|
+
|
|
976
|
+
# Returns the value of attribute old
|
|
977
|
+
#
|
|
978
|
+
# @return [Object] the current value of old
|
|
979
|
+
def old; end
|
|
980
|
+
|
|
981
|
+
# Sets the attribute old
|
|
982
|
+
#
|
|
983
|
+
# @param value [Object] the value to set the attribute old to.
|
|
984
|
+
# @return [Object] the newly set value
|
|
985
|
+
#
|
|
986
|
+
# source://haml//lib/haml/parser.rb#238
|
|
987
|
+
def old=(value); end
|
|
988
|
+
|
|
989
|
+
# This will be a literal for Haml::HamlBuffer#attributes's last argument, `attributes_hashes`.
|
|
990
|
+
#
|
|
991
|
+
# source://haml//lib/haml/parser.rb#246
|
|
992
|
+
def to_literal; end
|
|
993
|
+
|
|
994
|
+
private
|
|
995
|
+
|
|
996
|
+
# For `%foo{ { foo: 1 }, bar: 2 }`, :old is "{ { foo: 1 }, bar: 2 }" and this method returns " { foo: 1 }, bar: 2 " for last argument.
|
|
997
|
+
#
|
|
998
|
+
# source://haml//lib/haml/parser.rb#253
|
|
999
|
+
def stripped_old; end
|
|
1000
|
+
|
|
1001
|
+
class << self
|
|
1002
|
+
def [](*_arg0); end
|
|
1003
|
+
def inspect; end
|
|
1004
|
+
def keyword_init?; end
|
|
1005
|
+
def members; end
|
|
1006
|
+
def new(*_arg0); end
|
|
1007
|
+
end
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
# Designates an XHTML/XML element.
|
|
1011
|
+
#
|
|
1012
|
+
# source://haml//lib/haml/parser.rb#15
|
|
1013
|
+
Haml::Parser::ELEMENT = T.let(T.unsafe(nil), String)
|
|
1014
|
+
|
|
1015
|
+
# Designates a non-parsed line.
|
|
1016
|
+
#
|
|
1017
|
+
# source://haml//lib/haml/parser.rb#45
|
|
1018
|
+
Haml::Parser::ESCAPE = T.let(T.unsafe(nil), String)
|
|
1019
|
+
|
|
1020
|
+
# Designates a block of filtered text.
|
|
1021
|
+
#
|
|
1022
|
+
# source://haml//lib/haml/parser.rb#48
|
|
1023
|
+
Haml::Parser::FILTER = T.let(T.unsafe(nil), String)
|
|
1024
|
+
|
|
1025
|
+
# Designates script, the result of which is flattened and output.
|
|
1026
|
+
#
|
|
1027
|
+
# source://haml//lib/haml/parser.rb#36
|
|
1028
|
+
Haml::Parser::FLAT_SCRIPT = T.let(T.unsafe(nil), String)
|
|
1029
|
+
|
|
1030
|
+
# source://haml//lib/haml/parser.rb#93
|
|
1031
|
+
Haml::Parser::ID_KEY = T.let(T.unsafe(nil), String)
|
|
1032
|
+
|
|
1033
|
+
# The Regex that matches a literal string or symbol value
|
|
1034
|
+
#
|
|
1035
|
+
# source://haml//lib/haml/parser.rb#91
|
|
1036
|
+
Haml::Parser::LITERAL_VALUE_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
1037
|
+
|
|
1038
|
+
# @private
|
|
1039
|
+
#
|
|
1040
|
+
# source://haml//lib/haml/parser.rb#207
|
|
1041
|
+
class Haml::Parser::Line < ::Struct
|
|
1042
|
+
# Returns the value of attribute eod
|
|
1043
|
+
#
|
|
1044
|
+
# @return [Object] the current value of eod
|
|
1045
|
+
def eod; end
|
|
1046
|
+
|
|
1047
|
+
# Sets the attribute eod
|
|
1048
|
+
#
|
|
1049
|
+
# @param value [Object] the value to set the attribute eod to.
|
|
1050
|
+
# @return [Object] the newly set value
|
|
1051
|
+
def eod=(_); end
|
|
1052
|
+
|
|
1053
|
+
# Returns the value of attribute eod
|
|
1054
|
+
#
|
|
1055
|
+
# @return [Object] the current value of eod
|
|
1056
|
+
def eod?; end
|
|
1057
|
+
|
|
1058
|
+
# Returns the value of attribute full
|
|
1059
|
+
#
|
|
1060
|
+
# @return [Object] the current value of full
|
|
1061
|
+
def full; end
|
|
1062
|
+
|
|
1063
|
+
# Sets the attribute full
|
|
1064
|
+
#
|
|
1065
|
+
# @param value [Object] the value to set the attribute full to.
|
|
1066
|
+
# @return [Object] the newly set value
|
|
1067
|
+
def full=(_); end
|
|
1068
|
+
|
|
1069
|
+
# Returns the value of attribute index
|
|
1070
|
+
#
|
|
1071
|
+
# @return [Object] the current value of index
|
|
1072
|
+
def index; end
|
|
1073
|
+
|
|
1074
|
+
# Sets the attribute index
|
|
1075
|
+
#
|
|
1076
|
+
# @param value [Object] the value to set the attribute index to.
|
|
1077
|
+
# @return [Object] the newly set value
|
|
1078
|
+
def index=(_); end
|
|
1079
|
+
|
|
1080
|
+
# Returns the value of attribute parser
|
|
1081
|
+
#
|
|
1082
|
+
# @return [Object] the current value of parser
|
|
1083
|
+
def parser; end
|
|
1084
|
+
|
|
1085
|
+
# Sets the attribute parser
|
|
1086
|
+
#
|
|
1087
|
+
# @param value [Object] the value to set the attribute parser to.
|
|
1088
|
+
# @return [Object] the newly set value
|
|
1089
|
+
def parser=(_); end
|
|
1090
|
+
|
|
1091
|
+
# source://haml//lib/haml/parser.rb#215
|
|
1092
|
+
def strip!(from); end
|
|
1093
|
+
|
|
1094
|
+
# @private
|
|
1095
|
+
#
|
|
1096
|
+
# source://haml//lib/haml/parser.rb#211
|
|
1097
|
+
def tabs; end
|
|
1098
|
+
|
|
1099
|
+
# Returns the value of attribute text
|
|
1100
|
+
#
|
|
1101
|
+
# @return [Object] the current value of text
|
|
1102
|
+
def text; end
|
|
1103
|
+
|
|
1104
|
+
# Sets the attribute text
|
|
1105
|
+
#
|
|
1106
|
+
# @param value [Object] the value to set the attribute text to.
|
|
1107
|
+
# @return [Object] the newly set value
|
|
1108
|
+
def text=(_); end
|
|
1109
|
+
|
|
1110
|
+
# Returns the value of attribute whitespace
|
|
1111
|
+
#
|
|
1112
|
+
# @return [Object] the current value of whitespace
|
|
1113
|
+
def whitespace; end
|
|
1114
|
+
|
|
1115
|
+
# Sets the attribute whitespace
|
|
1116
|
+
#
|
|
1117
|
+
# @param value [Object] the value to set the attribute whitespace to.
|
|
1118
|
+
# @return [Object] the newly set value
|
|
1119
|
+
def whitespace=(_); end
|
|
1120
|
+
|
|
1121
|
+
class << self
|
|
1122
|
+
def [](*_arg0); end
|
|
1123
|
+
def inspect; end
|
|
1124
|
+
def keyword_init?; end
|
|
1125
|
+
def members; end
|
|
1126
|
+
def new(*_arg0); end
|
|
1127
|
+
end
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
# Used for scanning old attributes, substituting the first '{'
|
|
1131
|
+
#
|
|
1132
|
+
# source://haml//lib/haml/parser.rb#97
|
|
1133
|
+
Haml::Parser::METHOD_CALL_PREFIX = T.let(T.unsafe(nil), String)
|
|
1134
|
+
|
|
1135
|
+
# source://haml//lib/haml/parser.rb#81
|
|
1136
|
+
Haml::Parser::MID_BLOCK_KEYWORDS = T.let(T.unsafe(nil), Array)
|
|
1137
|
+
|
|
1138
|
+
# The value of the character that designates that a line is part
|
|
1139
|
+
# of a multiline string.
|
|
1140
|
+
#
|
|
1141
|
+
# source://haml//lib/haml/parser.rb#71
|
|
1142
|
+
Haml::Parser::MULTILINE_CHAR_VALUE = T.let(T.unsafe(nil), String)
|
|
1143
|
+
|
|
1144
|
+
# Designates a non-parsed line. Not actually a character.
|
|
1145
|
+
#
|
|
1146
|
+
# source://haml//lib/haml/parser.rb#51
|
|
1147
|
+
Haml::Parser::PLAIN_TEXT = T.let(T.unsafe(nil), Integer)
|
|
1148
|
+
|
|
1149
|
+
# @private
|
|
1150
|
+
#
|
|
1151
|
+
# source://haml//lib/haml/parser.rb#223
|
|
1152
|
+
class Haml::Parser::ParseNode < ::Struct
|
|
1153
|
+
# @return [ParseNode] a new instance of ParseNode
|
|
1154
|
+
#
|
|
1155
|
+
# source://haml//lib/haml/parser.rb#224
|
|
1156
|
+
def initialize(*args); end
|
|
1157
|
+
|
|
1158
|
+
# Returns the value of attribute children
|
|
1159
|
+
#
|
|
1160
|
+
# @return [Object] the current value of children
|
|
1161
|
+
def children; end
|
|
1162
|
+
|
|
1163
|
+
# Sets the attribute children
|
|
1164
|
+
#
|
|
1165
|
+
# @param value [Object] the value to set the attribute children to.
|
|
1166
|
+
# @return [Object] the newly set value
|
|
1167
|
+
def children=(_); end
|
|
1168
|
+
|
|
1169
|
+
# source://haml//lib/haml/parser.rb#229
|
|
1170
|
+
def inspect; end
|
|
1171
|
+
|
|
1172
|
+
# Returns the value of attribute line
|
|
1173
|
+
#
|
|
1174
|
+
# @return [Object] the current value of line
|
|
1175
|
+
def line; end
|
|
1176
|
+
|
|
1177
|
+
# Sets the attribute line
|
|
1178
|
+
#
|
|
1179
|
+
# @param value [Object] the value to set the attribute line to.
|
|
1180
|
+
# @return [Object] the newly set value
|
|
1181
|
+
def line=(_); end
|
|
1182
|
+
|
|
1183
|
+
# Returns the value of attribute parent
|
|
1184
|
+
#
|
|
1185
|
+
# @return [Object] the current value of parent
|
|
1186
|
+
def parent; end
|
|
1187
|
+
|
|
1188
|
+
# Sets the attribute parent
|
|
1189
|
+
#
|
|
1190
|
+
# @param value [Object] the value to set the attribute parent to.
|
|
1191
|
+
# @return [Object] the newly set value
|
|
1192
|
+
def parent=(_); end
|
|
1193
|
+
|
|
1194
|
+
# Returns the value of attribute type
|
|
1195
|
+
#
|
|
1196
|
+
# @return [Object] the current value of type
|
|
1197
|
+
def type; end
|
|
1198
|
+
|
|
1199
|
+
# Sets the attribute type
|
|
1200
|
+
#
|
|
1201
|
+
# @param value [Object] the value to set the attribute type to.
|
|
1202
|
+
# @return [Object] the newly set value
|
|
1203
|
+
def type=(_); end
|
|
1204
|
+
|
|
1205
|
+
# Returns the value of attribute value
|
|
1206
|
+
#
|
|
1207
|
+
# @return [Object] the current value of value
|
|
1208
|
+
def value; end
|
|
1209
|
+
|
|
1210
|
+
# Sets the attribute value
|
|
1211
|
+
#
|
|
1212
|
+
# @param value [Object] the value to set the attribute value to.
|
|
1213
|
+
# @return [Object] the newly set value
|
|
1214
|
+
def value=(_); end
|
|
1215
|
+
|
|
1216
|
+
class << self
|
|
1217
|
+
def [](*_arg0); end
|
|
1218
|
+
def inspect; end
|
|
1219
|
+
def keyword_init?; end
|
|
1220
|
+
def members; end
|
|
1221
|
+
def new(*_arg0); end
|
|
1222
|
+
end
|
|
1223
|
+
end
|
|
1224
|
+
|
|
1225
|
+
# source://haml//lib/haml/parser.rb#952
|
|
1226
|
+
class Haml::Parser::ParserOptions
|
|
1227
|
+
# @return [ParserOptions] a new instance of ParserOptions
|
|
1228
|
+
#
|
|
1229
|
+
# source://haml//lib/haml/parser.rb#980
|
|
1230
|
+
def initialize(values = T.unsafe(nil)); end
|
|
1231
|
+
|
|
1232
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1233
|
+
def autoclose; end
|
|
1234
|
+
|
|
1235
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1236
|
+
def escape_html; end
|
|
1237
|
+
|
|
1238
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1239
|
+
def filename; end
|
|
1240
|
+
|
|
1241
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1242
|
+
def line; end
|
|
1243
|
+
|
|
1244
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1245
|
+
def mime_type; end
|
|
1246
|
+
|
|
1247
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1248
|
+
def preserve; end
|
|
1249
|
+
|
|
1250
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1251
|
+
def remove_whitespace; end
|
|
1252
|
+
|
|
1253
|
+
# source://haml//lib/haml/parser.rb#964
|
|
1254
|
+
def suppress_eval; end
|
|
1255
|
+
end
|
|
1256
|
+
|
|
1257
|
+
# A list of options that are actually used in the parser
|
|
1258
|
+
#
|
|
1259
|
+
# source://haml//lib/haml/parser.rb#954
|
|
1260
|
+
Haml::Parser::ParserOptions::AVAILABLE_OPTIONS = T.let(T.unsafe(nil), Array)
|
|
1261
|
+
|
|
1262
|
+
# source://haml//lib/haml/parser.rb#967
|
|
1263
|
+
Haml::Parser::ParserOptions::DEFAULTS = T.let(T.unsafe(nil), Hash)
|
|
1264
|
+
|
|
1265
|
+
# Designates script that is always HTML-escaped.
|
|
1266
|
+
#
|
|
1267
|
+
# source://haml//lib/haml/parser.rb#33
|
|
1268
|
+
Haml::Parser::SANITIZE = T.let(T.unsafe(nil), String)
|
|
1269
|
+
|
|
1270
|
+
# Designates script, the result of which is output.
|
|
1271
|
+
#
|
|
1272
|
+
# source://haml//lib/haml/parser.rb#30
|
|
1273
|
+
Haml::Parser::SCRIPT = T.let(T.unsafe(nil), String)
|
|
1274
|
+
|
|
1275
|
+
# When following SILENT_SCRIPT, designates a comment that is not output.
|
|
1276
|
+
#
|
|
1277
|
+
# source://haml//lib/haml/parser.rb#42
|
|
1278
|
+
Haml::Parser::SILENT_COMMENT = T.let(T.unsafe(nil), String)
|
|
1279
|
+
|
|
1280
|
+
# Designates script which is run but not output.
|
|
1281
|
+
#
|
|
1282
|
+
# source://haml//lib/haml/parser.rb#39
|
|
1283
|
+
Haml::Parser::SILENT_SCRIPT = T.let(T.unsafe(nil), String)
|
|
1284
|
+
|
|
1285
|
+
# Keeps track of the ASCII values of the characters that begin a
|
|
1286
|
+
# specially-interpreted line.
|
|
1287
|
+
#
|
|
1288
|
+
# source://haml//lib/haml/parser.rb#55
|
|
1289
|
+
Haml::Parser::SPECIAL_CHARACTERS = T.let(T.unsafe(nil), Array)
|
|
1290
|
+
|
|
1291
|
+
# source://haml//lib/haml/parser.rb#82
|
|
1292
|
+
Haml::Parser::START_BLOCK_KEYWORDS = T.let(T.unsafe(nil), Array)
|
|
1293
|
+
|
|
1294
|
+
# Try to parse assignments to block starters as best as possible
|
|
1295
|
+
#
|
|
1296
|
+
# source://haml//lib/haml/parser.rb#84
|
|
1297
|
+
Haml::Parser::START_BLOCK_KEYWORD_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
1298
|
+
|
|
1299
|
+
# source://haml//lib/haml/ruby_expression.rb#5
|
|
1300
|
+
class Haml::RubyExpression < ::Ripper
|
|
1301
|
+
private
|
|
1302
|
+
|
|
1303
|
+
# @raise [ParseError]
|
|
1304
|
+
#
|
|
1305
|
+
# source://haml//lib/haml/ruby_expression.rb#28
|
|
1306
|
+
def on_parse_error(*_arg0); end
|
|
1307
|
+
|
|
1308
|
+
class << self
|
|
1309
|
+
# @return [Boolean]
|
|
1310
|
+
#
|
|
1311
|
+
# source://haml//lib/haml/ruby_expression.rb#15
|
|
1312
|
+
def string_literal?(code); end
|
|
1313
|
+
|
|
1314
|
+
# @return [Boolean]
|
|
1315
|
+
#
|
|
1316
|
+
# source://haml//lib/haml/ruby_expression.rb#8
|
|
1317
|
+
def syntax_error?(code); end
|
|
1318
|
+
end
|
|
1319
|
+
end
|
|
1320
|
+
|
|
1321
|
+
# source://haml//lib/haml/ruby_expression.rb#6
|
|
1322
|
+
class Haml::RubyExpression::ParseError < ::StandardError; end
|
|
1323
|
+
|
|
1324
|
+
# Compile [:dynamic, "foo#{bar}"] to [:multi, [:static, 'foo'], [:dynamic, 'bar']]
|
|
1325
|
+
#
|
|
1326
|
+
# source://haml//lib/haml/string_splitter.rb#9
|
|
1327
|
+
class Haml::StringSplitter < ::Temple::Filter
|
|
1328
|
+
# source://haml//lib/haml/string_splitter.rb#88
|
|
1329
|
+
def on_dynamic(code); end
|
|
1330
|
+
|
|
1331
|
+
private
|
|
1332
|
+
|
|
1333
|
+
# @return [Boolean]
|
|
1334
|
+
#
|
|
1335
|
+
# source://haml//lib/haml/string_splitter.rb#106
|
|
1336
|
+
def string_literal?(code); end
|
|
1337
|
+
|
|
1338
|
+
class << self
|
|
1339
|
+
# `code` param must be valid string literal
|
|
1340
|
+
#
|
|
1341
|
+
# source://haml//lib/haml/string_splitter.rb#13
|
|
1342
|
+
def compile(code); end
|
|
1343
|
+
|
|
1344
|
+
private
|
|
1345
|
+
|
|
1346
|
+
# source://haml//lib/haml/string_splitter.rb#41
|
|
1347
|
+
def compile_tokens!(exps, tokens); end
|
|
1348
|
+
|
|
1349
|
+
# Some quotes are split-unsafe. Replace such quotes with null characters.
|
|
1350
|
+
#
|
|
1351
|
+
# source://haml//lib/haml/string_splitter.rb#59
|
|
1352
|
+
def escape_quotes(beg_str, end_str); end
|
|
1353
|
+
|
|
1354
|
+
# source://haml//lib/haml/string_splitter.rb#68
|
|
1355
|
+
def shift_balanced_embexpr(tokens); end
|
|
1356
|
+
|
|
1357
|
+
# source://haml//lib/haml/string_splitter.rb#27
|
|
1358
|
+
def strip_quotes!(tokens); end
|
|
1359
|
+
end
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
# source://haml//lib/haml/string_splitter.rb#117
|
|
1363
|
+
class Haml::StringSplitter::SyntaxChecker < ::Ripper
|
|
1364
|
+
private
|
|
1365
|
+
|
|
1366
|
+
# @raise [ParseError]
|
|
1367
|
+
#
|
|
1368
|
+
# source://haml//lib/haml/string_splitter.rb#129
|
|
1369
|
+
def on_parse_error(*_arg0); end
|
|
1370
|
+
|
|
1371
|
+
class << self
|
|
1372
|
+
# @return [Boolean]
|
|
1373
|
+
#
|
|
1374
|
+
# source://haml//lib/haml/string_splitter.rb#120
|
|
1375
|
+
def syntax_error?(code); end
|
|
1376
|
+
end
|
|
1377
|
+
end
|
|
1378
|
+
|
|
1379
|
+
# source://haml//lib/haml/string_splitter.rb#118
|
|
1380
|
+
class Haml::StringSplitter::SyntaxChecker::ParseError < ::StandardError; end
|
|
1381
|
+
|
|
1382
|
+
# SyntaxError is the type of exception raised when Haml encounters an
|
|
1383
|
+
# ill-formatted document.
|
|
1384
|
+
# It's not particularly interesting,
|
|
1385
|
+
# except in that it's a subclass of {Haml::Error}.
|
|
1386
|
+
#
|
|
1387
|
+
# source://haml//lib/haml/error.rb#59
|
|
1388
|
+
class Haml::SyntaxError < ::Haml::Error; end
|
|
1389
|
+
|
|
1390
|
+
# source://haml//lib/haml/template.rb#0
|
|
1391
|
+
class Haml::Template < ::Temple::Templates::Tilt
|
|
1392
|
+
extend ::Haml::TemplateExtension
|
|
1393
|
+
end
|
|
1394
|
+
|
|
1395
|
+
# source://haml//lib/haml/template.rb#12
|
|
1396
|
+
module Haml::TemplateExtension
|
|
1397
|
+
# Activate Haml::Helpers for tilt templates.
|
|
1398
|
+
# https://github.com/judofyr/temple/blob/v0.7.6/lib/temple/mixins/template.rb#L7-L11
|
|
1399
|
+
#
|
|
1400
|
+
# source://haml//lib/haml/template.rb#15
|
|
1401
|
+
def compile(*_arg0); end
|
|
1402
|
+
end
|
|
1403
|
+
|
|
1404
|
+
# For backward compatibility of Tilt integration. TODO: We should deprecate this
|
|
1405
|
+
# and let Tilt have a native support of Haml 6. At least it generates warnings now.
|
|
1406
|
+
#
|
|
1407
|
+
# source://haml//lib/haml/engine.rb#50
|
|
1408
|
+
class Haml::TempleEngine < ::Haml::Engine
|
|
1409
|
+
# source://haml//lib/haml/engine.rb#51
|
|
1410
|
+
def compile(template); end
|
|
1411
|
+
|
|
1412
|
+
# source://haml//lib/haml/engine.rb#55
|
|
1413
|
+
def precompiled_with_ambles(_local_names, after_preamble:); end
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
# A module to count lines of expected code. This would be faster than actual code generation
|
|
1417
|
+
# and counting newlines in it.
|
|
1418
|
+
#
|
|
1419
|
+
# source://haml//lib/haml/temple_line_counter.rb#5
|
|
1420
|
+
module Haml::TempleLineCounter
|
|
1421
|
+
class << self
|
|
1422
|
+
# source://haml//lib/haml/temple_line_counter.rb#8
|
|
1423
|
+
def count_lines(exp); end
|
|
1424
|
+
end
|
|
1425
|
+
end
|
|
1426
|
+
|
|
1427
|
+
# source://haml//lib/haml/temple_line_counter.rb#6
|
|
1428
|
+
class Haml::TempleLineCounter::UnexpectedExpression < ::StandardError; end
|
|
1429
|
+
|
|
1430
|
+
# A module containing various useful functions.
|
|
1431
|
+
#
|
|
1432
|
+
# source://haml//lib/haml/util.rb#14
|
|
1433
|
+
module Haml::Util
|
|
1434
|
+
extend ::Haml::Util
|
|
1435
|
+
|
|
1436
|
+
# Moves a scanner through a balanced pair of characters.
|
|
1437
|
+
# For example:
|
|
1438
|
+
#
|
|
1439
|
+
# Foo (Bar (Baz bang) bop) (Bang (bop bip))
|
|
1440
|
+
# ^ ^
|
|
1441
|
+
# from to
|
|
1442
|
+
#
|
|
1443
|
+
# @param scanner [StringScanner] The string scanner to move
|
|
1444
|
+
# @param start [String] The character opening the balanced pair.
|
|
1445
|
+
# @param finish [String] The character closing the balanced pair.
|
|
1446
|
+
# @param count [Fixnum] The number of opening characters matched
|
|
1447
|
+
# before calling this method
|
|
1448
|
+
# @return [(String, String)] The string matched within the balanced pair
|
|
1449
|
+
# and the rest of the string.
|
|
1450
|
+
# `["Foo (Bar (Baz bang) bop)", " (Bang (bop bip))"]` in the example above.
|
|
1451
|
+
#
|
|
1452
|
+
# source://haml//lib/haml/util.rb#171
|
|
1453
|
+
def balance(scanner, start, finish, count = T.unsafe(nil)); end
|
|
1454
|
+
|
|
1455
|
+
# Checks that the encoding of a string is valid
|
|
1456
|
+
# and cleans up potential encoding gotchas like the UTF-8 BOM.
|
|
1457
|
+
# If it's not, yields an error string describing the invalid character
|
|
1458
|
+
# and the line on which it occurs.
|
|
1459
|
+
#
|
|
1460
|
+
# @param str [String] The string of which to check the encoding
|
|
1461
|
+
# @return [String] `str`, potentially with encoding gotchas like BOMs removed
|
|
1462
|
+
# @yield [msg] A block in which an encoding error can be raised.
|
|
1463
|
+
# Only yields if there is an encoding error
|
|
1464
|
+
# @yieldparam msg [String] The error message to be raised
|
|
1465
|
+
#
|
|
1466
|
+
# source://haml//lib/haml/util.rb#65
|
|
1467
|
+
def check_encoding(str); end
|
|
1468
|
+
|
|
1469
|
+
# Like {\#check\_encoding}, but also checks for a Ruby-style `-# coding:` comment
|
|
1470
|
+
# at the beginning of the template and uses that encoding if it exists.
|
|
1471
|
+
#
|
|
1472
|
+
# The Haml encoding rules are simple.
|
|
1473
|
+
# If a `-# coding:` comment exists,
|
|
1474
|
+
# we assume that that's the original encoding of the document.
|
|
1475
|
+
# Otherwise, we use whatever encoding Ruby has.
|
|
1476
|
+
#
|
|
1477
|
+
# Haml uses the same rules for parsing coding comments as Ruby.
|
|
1478
|
+
# This means that it can understand Emacs-style comments
|
|
1479
|
+
# and also that it cannot understand non-ASCII-compatible encodings
|
|
1480
|
+
# such as `UTF-16` and `UTF-32`.
|
|
1481
|
+
#
|
|
1482
|
+
# @param str [String] The Haml template of which to check the encoding
|
|
1483
|
+
# @raise [ArgumentError] if the document declares an unknown encoding
|
|
1484
|
+
# @return [String] The original string encoded properly
|
|
1485
|
+
# @yield [msg] A block in which an encoding error can be raised.
|
|
1486
|
+
# Only yields if there is an encoding error
|
|
1487
|
+
# @yieldparam msg [String] The error message to be raised
|
|
1488
|
+
#
|
|
1489
|
+
# source://haml//lib/haml/util.rb#112
|
|
1490
|
+
def check_haml_encoding(str, &block); end
|
|
1491
|
+
|
|
1492
|
+
# @return [Boolean]
|
|
1493
|
+
#
|
|
1494
|
+
# source://haml//lib/haml/util.rb#200
|
|
1495
|
+
def contains_interpolation?(str); end
|
|
1496
|
+
|
|
1497
|
+
# Scans through a string looking for the interoplation-opening `#{`
|
|
1498
|
+
# and, when it's found, yields the scanner to the calling code
|
|
1499
|
+
# so it can handle it properly.
|
|
1500
|
+
#
|
|
1501
|
+
# The scanner will have any backslashes immediately in front of the `#{`
|
|
1502
|
+
# as the second capture group (`scan[2]`),
|
|
1503
|
+
# and the text prior to that as the first (`scan[1]`).
|
|
1504
|
+
#
|
|
1505
|
+
# @return [String] The text remaining in the scanner after all `#{`s have been processed
|
|
1506
|
+
# @yieldparam scan [StringScanner] The scanner scanning through the string
|
|
1507
|
+
#
|
|
1508
|
+
# source://haml//lib/haml/util.rb#150
|
|
1509
|
+
def handle_interpolation(str); end
|
|
1510
|
+
|
|
1511
|
+
# Formats a string for use in error messages about indentation.
|
|
1512
|
+
#
|
|
1513
|
+
# @param indentation [String] The string used for indentation
|
|
1514
|
+
# @return [String] The name of the indentation (e.g. `"12 spaces"`, `"1 tab"`)
|
|
1515
|
+
#
|
|
1516
|
+
# source://haml//lib/haml/util.rb#187
|
|
1517
|
+
def human_indentation(indentation); end
|
|
1518
|
+
|
|
1519
|
+
# Like `Object#inspect`, but preserves non-ASCII characters rather than escaping them.
|
|
1520
|
+
# This is necessary so that the precompiled Haml template can be `#encode`d into `@options[:encoding]`
|
|
1521
|
+
# before being evaluated.
|
|
1522
|
+
#
|
|
1523
|
+
# @param obj [Object]
|
|
1524
|
+
# @return [String]
|
|
1525
|
+
#
|
|
1526
|
+
# source://haml//lib/haml/util.rb#129
|
|
1527
|
+
def inspect_obj(obj); end
|
|
1528
|
+
|
|
1529
|
+
# Whether or not ActionView's XSS protection is available and enabled,
|
|
1530
|
+
# as is the default for Rails 3.0+, and optional for version 2.3.5+.
|
|
1531
|
+
# Overridden in haml/template.rb if this is the case.
|
|
1532
|
+
#
|
|
1533
|
+
# @return [Boolean]
|
|
1534
|
+
#
|
|
1535
|
+
# source://haml//lib/haml/util.rb#51
|
|
1536
|
+
def rails_xss_safe?; end
|
|
1537
|
+
|
|
1538
|
+
# Silence all output to STDERR within a block.
|
|
1539
|
+
#
|
|
1540
|
+
# @yield A block in which no output will be printed to STDERR
|
|
1541
|
+
#
|
|
1542
|
+
# source://haml//lib/haml/util.rb#37
|
|
1543
|
+
def silence_warnings; end
|
|
1544
|
+
|
|
1545
|
+
# source://haml//lib/haml/util.rb#204
|
|
1546
|
+
def unescape_interpolation(str, escape_html = T.unsafe(nil)); end
|
|
1547
|
+
|
|
1548
|
+
private
|
|
1549
|
+
|
|
1550
|
+
# Parses a magic comment at the beginning of a Haml file.
|
|
1551
|
+
# The parsing rules are basically the same as Ruby's.
|
|
1552
|
+
#
|
|
1553
|
+
# @return [(Boolean, String or nil)] Whether the document begins with a UTF-8 BOM,
|
|
1554
|
+
# and the declared encoding of the document (or nil if none is declared)
|
|
1555
|
+
#
|
|
1556
|
+
# source://haml//lib/haml/util.rb#236
|
|
1557
|
+
def parse_haml_magic_comment(str); end
|
|
1558
|
+
|
|
1559
|
+
# source://haml//lib/haml/util.rb#248
|
|
1560
|
+
def try_parse_haml_emacs_magic_comment(scanner); end
|
|
1561
|
+
|
|
1562
|
+
class << self
|
|
1563
|
+
def escape_html(_arg0); end
|
|
1564
|
+
|
|
1565
|
+
# TODO: Remove unescape_interpolation's workaround and get rid of `respond_to?`.
|
|
1566
|
+
#
|
|
1567
|
+
# source://haml//lib/haml/util.rb#29
|
|
1568
|
+
def escape_html_safe(html); end
|
|
1569
|
+
end
|
|
1570
|
+
end
|
|
1571
|
+
|
|
1572
|
+
# source://haml//lib/haml/version.rb#3
|
|
1573
|
+
Haml::VERSION = T.let(T.unsafe(nil), String)
|
|
1574
|
+
|
|
1575
|
+
# source://haml//lib/haml/whitespace.rb#3
|
|
1576
|
+
class Haml::Whitespace < ::Temple::Filter
|
|
1577
|
+
# source://haml//lib/haml/whitespace.rb#4
|
|
1578
|
+
def on_whitespace; end
|
|
1579
|
+
end
|
|
1580
|
+
|
|
1581
|
+
class Temple::Filter
|
|
1582
|
+
include ::Temple::Mixins::CompiledDispatcher
|
|
1583
|
+
include ::Temple::Mixins::CoreDispatcher
|
|
1584
|
+
include ::Temple::Mixins::EscapeDispatcher
|
|
1585
|
+
include ::Temple::Mixins::ControlFlowDispatcher
|
|
1586
|
+
include ::Haml::EscapeanyDispathcer
|
|
1587
|
+
include ::Haml::FescapeDispathcer
|
|
1588
|
+
end
|