class Audiothority::RewriteChange
Public Class Methods
new(field, tags)
click to toggle source
# File lib/audiothority/change.rb, line 53 def initialize(field, tags) @field = field @tags = tags end
Public Instance Methods
perform()
click to toggle source
# File lib/audiothority/change.rb, line 58 def perform @tags.each do |tag| tag.send(tag_setter, tag.send(@field)) end end
present(display)
click to toggle source
# File lib/audiothority/change.rb, line 64 def present(display) display.say(%( #{display.set_color(@field, :yellow)} rewrite field)) end