Module: Foobara::CommandConnector::Concerns::Reflection

Includes:
Foobara::Concern
Defined in:
foobara-0.3.0/projects/command_connectors/src/command_connector/concerns/reflection.rb

Instance Method Summary collapse

Methods included from Foobara::Concern

foobara_class_methods_module_for, foobara_concern?, included

Instance Method Details

#all_exposed_type_namesObject

TODO: figure out how this is used



14
15
16
17
# File 'projects/command_connectors/src/command_connector/concerns/reflection.rb', line 14

def all_exposed_type_names
  # TODO: cache this or better yet cache #foobara_manifest
  foobara_manifest[:type].keys.sort.map(&:to_s)
end

#foobara_manifestObject



7
8
9
10
11
# File 'projects/command_connectors/src/command_connector/concerns/reflection.rb', line 7

def foobara_manifest
  Namespace.use command_registry do
    foobara_manifest_in_current_namespace
  end
end