class SimpleForm::Wrappers::Leaf
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/simple_form/wrappers/leaf.rbs class SimpleForm::Wrappers::Leaf def render: (SimpleForm::Inputs::StringInput input) -> ActiveSupport::SafeBuffer end
def find(name)
def find(name) self if @namespace == name end
def initialize(namespace, options = {})
def initialize(namespace, options = {}) @namespace = namespace @options = options end
def render(input)
Experimental RBS support (using type sampling data from the type_fusion
project).
def render: (SimpleForm::Inputs::StringInput input) -> ActiveSupport::SafeBuffer
This signature was generated using 4 samples from 2 applications.
def render(input) method = input.method(@namespace) if method.arity.zero? ActiveSupport::Deprecation.warn(SimpleForm::CUSTOM_INPUT_DEPRECATION_WARN % { name: @namespace }) method.call else method.call(@options) end end