Class: Luoma::StaticAnalysis::Result
- Inherits:
-
Object
- Object
- Luoma::StaticAnalysis::Result
- Defined in:
- lib/luoma/static_analysis.rb,
sig/luoma/static_analysis.rbs
Overview
The result of analyzing a template.
Instance Attribute Summary collapse
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#globals ⇒ Object
readonly
Returns the value of attribute globals.
-
#locals ⇒ Object
readonly
Returns the value of attribute locals.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(variables, globals, locals, filters, tags) ⇒ Result
constructor
A new instance of Result.
- #to_h ⇒ Hash[Symbol, untyped]
Constructor Details
#initialize(variables, globals, locals, filters, tags) ⇒ Result
Returns a new instance of Result.
201 202 203 204 205 206 207 |
# File 'lib/luoma/static_analysis.rb', line 201 def initialize(variables, globals, locals, filters, ) @variables = variables @globals = globals @locals = locals @filters = filters @tags = end |
Instance Attribute Details
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
199 200 201 |
# File 'lib/luoma/static_analysis.rb', line 199 def filters @filters end |
#globals ⇒ Object (readonly)
Returns the value of attribute globals.
199 200 201 |
# File 'lib/luoma/static_analysis.rb', line 199 def globals @globals end |
#locals ⇒ Object (readonly)
Returns the value of attribute locals.
199 200 201 |
# File 'lib/luoma/static_analysis.rb', line 199 def locals @locals end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
199 200 201 |
# File 'lib/luoma/static_analysis.rb', line 199 def @tags end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
199 200 201 |
# File 'lib/luoma/static_analysis.rb', line 199 def variables @variables end |
Instance Method Details
#to_h ⇒ Hash[Symbol, untyped]
209 210 211 212 213 214 215 216 217 |
# File 'lib/luoma/static_analysis.rb', line 209 def to_h { variables: @variables, globals: @globals, locals: @locals, filters: @filters, tags: @tags } end |