class PublicSuffix::Rule::Normal

Normal represents a standard rule (e.g. com).

Public Instance Methods

dot-split rule value and returns all rule parts in the order they appear in the value.

@return [Array<String>]

# File lib/public_suffix/rule.rb, line 220
def parts
  @value.split(DOT)
end

Gets the original rule definition.

@return [String] The rule definition.

# File lib/public_suffix/rule.rb, line 212
def rule
  value
end