Class: HomographicSpoofing::Detector::Rule::Idn::Context
- Inherits:
-
Context
- Object
- Context
- HomographicSpoofing::Detector::Rule::Idn::Context
- Defined in:
- lib/homographic_spoofing/detector/rule/idn/context.rb
Instance Attribute Summary collapse
-
#tld ⇒ Object
readonly
Returns the value of attribute tld.
Instance Method Summary collapse
-
#initialize(label:, tld:) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(label:, tld:) ⇒ Context
Returns a new instance of Context.
4 5 6 7 |
# File 'lib/homographic_spoofing/detector/rule/idn/context.rb', line 4 def initialize(label:, tld:) @tld = tld super(label:) end |
Instance Attribute Details
#tld ⇒ Object (readonly)
Returns the value of attribute tld.
2 3 4 |
# File 'lib/homographic_spoofing/detector/rule/idn/context.rb', line 2 def tld @tld end |