Module: NobleNames::Data
- Defined in:
- lib/noble_names/data.rb
Overview
The module responsible for maintaining and delivering
the match data as defined in the data directory.
Constant Summary collapse
- DATA_PATH =
File.('../../../data/', __FILE__).freeze
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
This returns an instance variable if it exists.
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
This returns an instance variable if it exists. Otherwise it calls super.
13 14 15 16 |
# File 'lib/noble_names/data.rb', line 13 def self.method_missing(method, *args, &block) var = instance_variable_get("@#{method}") var ? var : super(method, args, block) end |