Sha256: fff3b18d25d0d7f6bb71188ebb65d24f338f758939bc501be2c9538b491d7553

Contents?: true

Size: 964 Bytes

Versions: 2

Compression:

Stored size: 964 Bytes

Contents

# frozen_string_literal: true

new({ renderer: :html, method: :web }) do |params, &user_proc|
  params
end

new({ renderer: :html, method: :renderers, type: :string })
new({ renderer: :html, method: :delete, type: :string }) do |params|
  html.delete(id)
end
new({ renderer: :html, method: :hypertext }) do |params|
  html.hypertext(params)
end
new({ renderer: :html, method: :hyperedit }) do |params|
  html.hyperedit(params)
end
new({ renderer: :html, method: :read, type: :string }) do |value, &bloc|
  html.read(id, value)
end

new({ renderer: :html, method: :browse, type: :string }) do |value, &bloc|
  html.browse(id, value)
end

new({ renderer: :html, method: :terminal, type: :string }) do |value, &bloc|
  html.terminal(id, value)
end


new({renderer: :html, method: :match}) do |params, bloc|
  case id
  when :atome || :view
    result = bloc.call
    result = { alterations: result }
    params = params.merge(result)
    html.match(params)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
atome-0.5.5.6.5 lib/renderers/html/utility.rb
atome-0.5.5.6.4 lib/renderers/html/utility.rb