Sha256: b0a90a203dc055dbaf666b52054a63fe39352798bbbe5c97d2f83e16c67f6c42

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

module Phlexi
  module Display
    module FieldOptions
      module Hints
        def hint(hint = nil)
          if hint.nil?
            options[:hint]
          else
            options[:hint] = hint
            self
          end
        end

        def has_hint?
          hint.present?
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phlexi-display-0.0.2 lib/phlexi/display/field_options/hints.rb