Class: HomographicSpoofing::Detector::Rule::Idn::Context

Inherits:
Context
  • Object
show all
Defined in:
lib/homographic_spoofing/detector/rule/idn/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tldObject (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