module FlightConfig::HasIndices::ClassMethods
Public Instance Methods
has_indices(klass, &b)
click to toggle source
# File lib/flight_config/has_indices.rb, line 35 def has_indices(klass, &b) @indices ||= [] @indices << [klass, b] end
indices()
click to toggle source
Calls superclass method
# File lib/flight_config/has_indices.rb, line 40 def indices @indices ||= [] base = (defined?(super) ? super : []) [*base, *@indices] end