Class: Hone::Patterns::TaintTrackingBase::TaintInfo
- Inherits:
-
Data
- Object
- Data
- Hone::Patterns::TaintTrackingBase::TaintInfo
- Defined in:
- lib/hone/patterns/taint_tracking_base.rb
Overview
Taint info structure
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#origin_line ⇒ Object
readonly
Returns the value of attribute origin_line.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#source_code ⇒ Object
readonly
Returns the value of attribute source_code.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, source: nil, source_code: nil, origin_line: nil, metadata: {}) ⇒ TaintInfo
constructor
A new instance of TaintInfo.
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
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
30 31 32 |
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30 def @metadata end |
#origin_line ⇒ Object (readonly)
Returns the value of attribute origin_line
30 31 32 |
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30 def origin_line @origin_line end |
#source ⇒ Object (readonly)
Returns the value of attribute source
30 31 32 |
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30 def source @source end |
#source_code ⇒ Object (readonly)
Returns the value of attribute source_code
30 31 32 |
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30 def source_code @source_code end |
#type ⇒ Object (readonly)
Returns the value of attribute type
30 31 32 |
# File 'lib/hone/patterns/taint_tracking_base.rb', line 30 def type @type end |