class Locomotive::Steam::Liquid::Drops::SectionUrlField

Drop representing the value of an url attribute

Public Class Methods

new(url, new_window = false) click to toggle source
# File lib/locomotive/steam/liquid/drops/section_content_proxy.rb, line 87
def initialize(url, new_window = false)
  @url, @new_window = url, new_window
end

Public Instance Methods

new_window() click to toggle source
# File lib/locomotive/steam/liquid/drops/section_content_proxy.rb, line 91
def new_window
  @new_window
end
new_window_attribute() click to toggle source
# File lib/locomotive/steam/liquid/drops/section_content_proxy.rb, line 95
def new_window_attribute
  !!@new_window ? 'target="_blank"' : ''
end
present?() click to toggle source
# File lib/locomotive/steam/liquid/drops/section_content_proxy.rb, line 99
def present?
  @url.present?
end
to_s() click to toggle source
# File lib/locomotive/steam/liquid/drops/section_content_proxy.rb, line 103
def to_s
  @url
end