Class: Hone::Patterns::TaintTrackingBase::TaintInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/hone/patterns/taint_tracking_base.rb

Overview

Taint info structure

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, source: nil, source_code: nil, origin_line: nil, metadata: {}) ⇒ TaintInfo

Returns a new instance of TaintInfo.



31
32
33
# File 'lib/hone/patterns/taint_tracking_base.rb', line 31

def initialize(type:, source: nil, source_code: nil, origin_line: nil, metadata: {})
  super
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • the current value of metadata



30
31
32
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30

def 
  @metadata
end

#origin_lineObject (readonly)

Returns the value of attribute origin_line

Returns:

  • the current value of origin_line



30
31
32
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30

def origin_line
  @origin_line
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • the current value of source



30
31
32
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30

def source
  @source
end

#source_codeObject (readonly)

Returns the value of attribute source_code

Returns:

  • the current value of source_code



30
31
32
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30

def source_code
  @source_code
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • the current value of type



30
31
32
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30

def type
  @type
end