class BBC::A11y::Configuration::Settings

Attributes

after_all_hooks[R]
before_all_hooks[R]
pages[R]

Public Class Methods

new(before_all_hooks = [], after_all_hooks = [], pages = []) click to toggle source
# File lib/bbc/a11y/configuration.rb, line 62
def initialize(before_all_hooks = [], after_all_hooks = [], pages = [])
  @before_all_hooks = before_all_hooks
  @after_all_hooks = after_all_hooks
  @pages = pages
  freeze
end

Public Instance Methods

with_pages(new_pages) click to toggle source
# File lib/bbc/a11y/configuration.rb, line 69
def with_pages(new_pages)
  self.class.new(before_all_hooks, after_all_hooks, new_pages)
end