module NobleNames::Data
The module responsible for maintaining and delivering the match data as defined in the `data` directory.
Constants
- DATA_PATH
Public Class Methods
method_missing(method, *args, &block)
click to toggle source
This returns an instance variable if it exists. Otherwise it calls super.
Calls superclass method
# File lib/noble_names/data.rb, line 14 def self.method_missing(method, *args, &block) var = instance_variable_get("@#{method}") var ? var : super end
respond_to_missing?(method, *args, &block)
click to toggle source
Remember to define respond_to_missing.
Calls superclass method
# File lib/noble_names/data.rb, line 20 def self.respond_to_missing?(method, *args, &block) var = instance_variable_get("@#{method}") var ? true : super end