Class: Luoma::StaticAnalysis::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/luoma/static_analysis.rb,
sig/luoma/static_analysis.rbs

Overview

The result of analyzing a template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variables, globals, locals, filters, tags) ⇒ Result

Returns a new instance of Result.

Parameters:

  • variables (Object)
  • globals (Object)
  • locals (Object)
  • filters (Object)
  • tags (Object)


201
202
203
204
205
206
207
# File 'lib/luoma/static_analysis.rb', line 201

def initialize(variables, globals, locals, filters, tags)
  @variables = variables
  @globals = globals
  @locals = locals
  @filters = filters
  @tags = tags
end

Instance Attribute Details

#filtersObject (readonly)

Returns the value of attribute filters.

Returns:

  • (Object)


199
200
201
# File 'lib/luoma/static_analysis.rb', line 199

def filters
  @filters
end

#globalsObject (readonly)

Returns the value of attribute globals.

Returns:

  • (Object)


199
200
201
# File 'lib/luoma/static_analysis.rb', line 199

def globals
  @globals
end

#localsObject (readonly)

Returns the value of attribute locals.

Returns:

  • (Object)


199
200
201
# File 'lib/luoma/static_analysis.rb', line 199

def locals
  @locals
end

#tagsObject (readonly)

Returns the value of attribute tags.

Returns:

  • (Object)


199
200
201
# File 'lib/luoma/static_analysis.rb', line 199

def tags
  @tags
end

#variablesObject (readonly)

Returns the value of attribute variables.

Returns:

  • (Object)


199
200
201
# File 'lib/luoma/static_analysis.rb', line 199

def variables
  @variables
end

Instance Method Details

#to_hHash[Symbol, untyped]

Returns:

  • (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