Class: Pennyworth::Presenters::Text
- Inherits:
-
Object
- Object
- Pennyworth::Presenters::Text
- Extended by:
- Forwardable
- Defined in:
- lib/pennyworth/presenters/text.rb
Overview
Shapes a text record for serialization.
Instance Method Summary collapse
-
#initialize(record, inflector: Inflector.new) ⇒ Text
constructor
A new instance of Text.
- #label ⇒ Object
Constructor Details
Instance Method Details
#label ⇒ Object
18 |
# File 'lib/pennyworth/presenters/text.rb', line 18 def label = inflector.call(record.content.to_s) |