lib/slurper/engine.rb in slurper-2.2.0 vs lib/slurper/engine.rb in slurper-2.2.1
- old
+ new
@@ -21,14 +21,14 @@
protected
def yamlize_story_file
IO.read(story_file)
- .then {|x| x.strip}
- .then {|x| x.gsub(/^ \b/, " ") }
- .then {|x| x.gsub(/^/, " ") }
- .then {|x| x.gsub(/ $/, "") }
- .then {|x| x.gsub(/ ==.*/, "-") }
- .then {|x| x.gsub(/ description:$/, " description: |") }
+ .yield_self {|x| x.strip}
+ .yield_self {|x| x.gsub(/^ \b/, " ") }
+ .yield_self {|x| x.gsub(/^/, " ") }
+ .yield_self {|x| x.gsub(/ $/, "") }
+ .yield_self {|x| x.gsub(/ ==.*/, "-") }
+ .yield_self {|x| x.gsub(/ description:$/, " description: |") }
end
end
end