class CSP::DirectiveValue::Source::Host

Public Instance Methods

host_part() click to toggle source
# File lib/directive_value/source/host.rb, line 12
def host_part
  @match[:host_part]
end
path_part() click to toggle source
# File lib/directive_value/source/host.rb, line 20
def path_part
  @match[:path_part]
end
port_part() click to toggle source
# File lib/directive_value/source/host.rb, line 16
def port_part
  @match[:port_part]
end
scheme_part() click to toggle source
# File lib/directive_value/source/host.rb, line 8
def scheme_part
  @match[:scheme_part]
end

Private Instance Methods

regexp() click to toggle source
# File lib/directive_value/source/host.rb, line 26
def regexp
  /\A#{CSP::Grammar::HOST_SOURCE}\z/o
end