Module: Cerealize::Codec::Text

Defined in:
lib/cerealize/codec/text.rb

Class Method Summary collapse

Class Method Details

.decode(str) ⇒ Object



15
16
17
# File 'lib/cerealize/codec/text.rb', line 15

def decode(str)
  str
end

.encode(obj) ⇒ Object



11
12
13
# File 'lib/cerealize/codec/text.rb', line 11

def encode(obj)
  YAML.dump(obj)
end

.yours?(str) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/cerealize/codec/text.rb', line 7

def yours?(str)
  true
end