Method: Hanami::Helpers::FormHelper::Values#initialize

Defined in:
lib/hanami/helpers/form_helper/values.rb

#initialize(values: {}, params: {}, csrf_token: nil) ⇒ Values

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.

Returns a new instance of Values.

Since:

  • 2.1.0

API:

  • private



24
25
26
27
28
# File 'lib/hanami/helpers/form_helper/values.rb', line 24

def initialize(values: {}, params: {}, csrf_token: nil)
  @values = values.to_h
  @params = params.to_h
  @csrf_token = csrf_token
end