class SBF::Client::Config
Attributes
default_year[R]
open_registration_years[R]
website_url[R]
years_for_baron[R]
years_for_crusader[R]
years_for_knight[R]
years_for_knight_commander[R]
years_for_squire[R]
Public Class Methods
method_missing(method_name, *arguments, &block)
click to toggle source
Attempts to call the method on the cached configuration object rubocop:disable Style/MissingRespondToMissing
Calls superclass method
# File lib/stbaldricks/entities/config.rb, line 26 def self.method_missing(method_name, *arguments, &block) # The first time a missing method is called, call reload to make sure the instance has been populated unless @_loaded @_loaded = true reload end # If the method being called exists on the instance, call it. Otherwise forward the request on to 'super'. return instance.send(method_name) if instance.respond_to?(method_name) super(method_name, *arguments, &block) end