Sha256: 7938828ef27f5ffce351f641b684d7b3df949f0a11f6d9433ff6a1ea9e4da91e
Contents?: true
Size: 661 Bytes
Versions: 33
Compression:
Stored size: 661 Bytes
Contents
# encoding: utf-8 module Prismic module Fragments class GeoPoint < Fragment attr_accessor :longitude, :latitude def initialize(longitude, latitude) @longitude = longitude @latitude = latitude end # Generate an HTML representation of the fragment # # @param link_resolver [LinkResolver] The LinkResolver used to build # application's specific URL # # @return [String] the HTML representation def as_html(link_resolver=nil) %(<div class="geopoint"><span class="longitude">#@longitude</span><span class="latitude">#@latitude</span></div>) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems