Class: Forme::Wrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/forme/transformers/wrapper.rb

Overview

Default wrapper doesn’t wrap input in any tag

Direct Known Subclasses

TableRow, Tag

Defined Under Namespace

Classes: TableRow, Tag

Instance Method Summary collapse

Instance Method Details

#call(tag, input) ⇒ Object

Return an array containing the tag



5
6
7
# File 'lib/forme/transformers/wrapper.rb', line 5

def call(tag, input)
  Array(tag)
end