module Micro::Attributes::Features
Public Instance Methods
all()
click to toggle source
# File lib/micro/attributes/features.rb, line 138 def all @all ||= self.with(Options::KEYS) end
with(names)
click to toggle source
# File lib/micro/attributes/features.rb, line 142 def with(names) Options.fetch_keys(names) do |keys| Options.remove_base_if_has_strict(keys) Options.fetch_module_by_keys(keys) end end
without(names)
click to toggle source
# File lib/micro/attributes/features.rb, line 150 def without(names) Options.fetch_keys(names) do |keys| keys_to_fetch = Options.without_keys(keys) return ::Micro::Attributes if keys_to_fetch.empty? Options.fetch_module_by_keys(keys_to_fetch) end end