Method: Mongoid::Config::Introspection::Option#initialize

Defined in:
lib/mongoid/config/introspection.rb

#initialize(name, default, comment) ⇒ Option

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.

Create a new Option instance with the given name, default value, and comment.

Parameters:

  • name (String)

    The option’s name.

  • default (String)

    The option’s default value, as a String representing the actual Ruby value.

  • comment (String)

    The multi-line comment describing the option.



58
59
60
# File 'lib/mongoid/config/introspection.rb', line 58

def initialize(name, default, comment)
  @name, @default, @comment = name, default, unindent(comment)
end