Sha256: 58086183b97636a0520d4fbc8f975208dd04cf435feaeaf713aa3abb39f2b222

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

module Magicka
  # @api public
  #
  # Class responsible for controlling one object display
  class Display < Aggregator
    with_element(Text, :input)
    with_element(Text, :select)

    # Noop
    #
    # Used to not render a button when using
    # display and not form
    #
    # #return [NilClass]
    def button(**_args); end

    # @method input(field, model: self.model, **options)
    # @api public
    #
    # @param field [String,Symbol] field to be shown
    # @param model [String] model being rendered
    #   (when omited, use the aggregator model)
    # @param options [Hash]
    #
    # @see Magicka::Text
    #
    # @return (see Magicka::Element#render)

    # @method select(field, model: self.model, **options)
    # @api public
    #
    # @param field [String,Symbol] field to be shown
    # @param model [String] model being rendered
    #   (when omited, use the aggregator model)
    # @param options [Hash]
    #
    # @see Magicka::Text
    #
    # @return (see Magicka::Element#render)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magicka-1.0.0 lib/magicka/display.rb
magicka-0.6.0 lib/magicka/display.rb