Method: Formular::Element.rename_html_context

Defined in:
lib/formular/element.rb

.rename_html_context(old_context, new_context) ⇒ Object

a convenient way of changing the key for a context useful for inheritance if you want to replace a context but still access the original function



53
54
55
# File 'lib/formular/element.rb', line 53

def self.rename_html_context(old_context, new_context)
  self.html_blocks[new_context] = self.html_blocks.delete(old_context)
end