Sha256: 39ea232fa0b5c677605ca8130496edff0c637638358b20a84b0375069d48e173

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Phlexi
  module Table
    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-table-0.0.1 lib/phlexi/table/field_options/hints.rb