Module: Hanami::Action::Exposable::Guard::ClassMethods Private

Defined in:
lib/hanami/action/exposable/guard.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.

Exposures API Guard class methods

Since:

  • 0.7.1

Instance Method Summary collapse

Instance Method Details

#expose(*names) ⇒ void

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.

This method returns an undefined value.

Prevents exposure if names contain a reserved word.

Parameters:

  • names (Array<Symbol>)

    the name(s) of the attribute(s) to be exposed

Since:

  • 0.7.1


52
53
54
55
56
# File 'lib/hanami/action/exposable/guard.rb', line 52

def expose(*names)
  detect_reserved_words!(names)

  super
end