In the Dirigible module we see this code:
def self.api(options = {})
Dirigible::API.new(options)
end
Every time api is referenced, as it is for all Dirigible calls via method_missing, a new API will be instantiated.
Why is this done? Why is there an options hash that (seemingly) can't be modified during these calls?
In the Dirigible module we see this code:
Every time
apiis referenced, as it is for all Dirigible calls via method_missing, a new API will be instantiated.Why is this done? Why is there an options hash that (seemingly) can't be modified during these calls?