Module: Fix::Doc Private
- Defined in:
- lib/fix/doc.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Module for storing spec documents.
Class Method Summary collapse
- .fetch(name) ⇒ Object private
- .specs(*contexts) ⇒ Object private
Class Method Details
.fetch(name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/fix/doc.rb', line 9 def self.fetch(name) const_get("#{name}::CONTEXTS") end |
.specs(*contexts) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17 18 19 20 21 22 |
# File 'lib/fix/doc.rb', line 14 def self.specs(*contexts) contexts.flat_map do |context| env = context.new env.public_methods(false).map do |public_method| [env] + env.public_send(public_method) end end end |