class Applyrics::StringsFile::Generator

Public Class Methods

new(data) click to toggle source
# File lib/applyrics/stringsfile.rb, line 48
def initialize(data)
  @hash = data
end

Public Instance Methods

run() { |"\"#{key}\" = \"#{value}\"\n"| ... } click to toggle source
# File lib/applyrics/stringsfile.rb, line 52
def run
  @hash.each do |key,value|
    yield "\"#{key}\" = \"#{value}\"\n" if block_given?
  end
end