module NfgUi::Components::Utilities::Methodable
Allows components to be setup to accept method: options
Public Instance Methods
data()
click to toggle source
Calls superclass method
# File lib/nfg_ui/components/utilities/methodable.rb, line 12 def data send(:method) ? super.merge!(method: send(:method)) : super end
method()
click to toggle source
# File lib/nfg_ui/components/utilities/methodable.rb, line 8 def method options.fetch(:method, nil) end
Private Instance Methods
non_html_attribute_options()
click to toggle source
Calls superclass method
# File lib/nfg_ui/components/utilities/methodable.rb, line 18 def non_html_attribute_options super.push(:method) end