Sha256: ece23f15dcef59149bf6a286338343e61e321b2346057c7e7c3c286eb33eb650
Contents?: true
Size: 338 Bytes
Versions: 7
Compression:
Stored size: 338 Bytes
Contents
module SurveyorAPIHelpers def json_response page.source end def title_modification_module(modifier) mod = Module.new mod.send(:define_method, :filtered_for_json) do dolly = self.clone dolly.sections = self.sections dolly.title = "#{modifier} #{dolly.title}" dolly end return mod end end
Version data entries
7 entries across 7 versions & 3 rubygems