Class: Rack::Tracker::Zanox::Mastertag

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/rack/tracker/zanox/zanox.rb

Overview

name of the handler everything after is passed as options

Instance Method Summary collapse

Methods inherited from OpenStruct

#to_h

Instance Method Details

#writeObject



6
7
8
9
10
# File 'lib/rack/tracker/zanox/zanox.rb', line 6

def write
  to_h.except(:id).map do |k,v|
    "var zx_#{k} = #{v.to_json};"
  end.join("\n")
end