lib/nanoc/base/entities/content.rb in nanoc-4.9.6 vs lib/nanoc/base/entities/content.rb in nanoc-4.9.7
- old
+ new
@@ -87,15 +87,15 @@
contract C::None => C::Bool
def binary?
false
end
- # TODO: Add contract
+ contract C::None => Array
def marshal_dump
[filename, string]
end
- # TODO: Add contract
+ contract Array => C::Any
def marshal_load(array)
@filename = array[0]
@string = Nanoc::Int::LazyValue.new(array[1])
end
end