Class: Plumb::Codec::Forms::TrueEncoder
- Inherits:
-
Object
- Object
- Plumb::Codec::Forms::TrueEncoder
- Defined in:
- lib/plumb/codec.rb
Overview
Booleans are two encoders: a field typed Types::Boolean is the
True | False union underneath, and each branch matches its own.
Instance Method Summary collapse
Instance Method Details
#decode(_str) ⇒ Object
853 |
# File 'lib/plumb/codec.rb', line 853 def decode(_str) = true |
#encode(_bool) ⇒ Object
852 |
# File 'lib/plumb/codec.rb', line 852 def encode(_bool) = 'true' |