Class: AdLint::Literal

Inherits:
CodeStructure show all
Defined in:
lib/adlint/code.rb

Instance Method Summary collapse

Methods inherited from CodeStructure

#print_as_csv, #to_s

Constructor Details

#initialize(loc, lit_type, prefix, suffix, value) ⇒ Literal

Returns a new instance of Literal.



435
436
437
438
439
440
441
# File 'lib/adlint/code.rb', line 435

def initialize(loc, lit_type, prefix, suffix, value)
  @loc      = loc
  @lit_type = lit_type
  @prefix   = prefix
  @suffix   = suffix
  @value    = value
end