Sha256: 023389de547730c99bb5b120949bc41c37b2ddb6fb9f48b8f1002cfec9f8560d

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

module Repres::HyperText::ApplicationHelper

  def library_enabled?(name, options)
    defined?(options) && options.try(:[], name).present?
  end

  def library_version(name, default_version, options)
    defined?(options) ? options.try(:[], name).try(:[], :version)||default_version : default_version
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
repres-hyper_text-1.0.3 app/helpers/repres/hyper_text/application_helper.rb
repres-hyper_text-1.0.2 app/helpers/repres/hyper_text/application_helper.rb
repres-hyper_text-1.0.1 app/helpers/repres/hyper_text/application_helper.rb
repres-hyper_text-1.0 app/helpers/repres/hyper_text/application_helper.rb