Module: Cerealize::Codec::Text

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

Class Method Summary (collapse)

Class Method Details

+ (Object) decode(str)



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

def decode(str)
  str
end

+ (Object) encode(obj)



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

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

+ (Boolean) yours?(str)



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

def yours?(str)
  true
end