Sha256: c1a26da4a3b167f814169a7ec61d027946b66fa857d84f97e75b845c535d42f8

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true

Universe.eVe(true)
puts "eVe version : #{EVe::VERSION}"

module EVe
  def new(params, &bloc)
    if params[:page]
      site_found = grab(params[:page][:application])
      site_found.clear(true)
      page_id = params[:page][:name]
      site_found.box({ id: page_id })
    elsif params[:application]

      footer_header_size=33
      footer_header_color=color({red: 0, green: 0, blue: 0, id: :footer_header_color})

      if params[:header]
        top = footer_header_size
        header=box({ left: 0, right: 0, width: :auto, top: 0, height: top, id: :header })
        # header.attach(:footer_header_color)
      else
        top = 0
        end
        if params[:footer]
          bottom = footer_header_size
          box({ left: 0, right: 0, width: :auto, top: :auto, bottom: 0, height: bottom, id: :footer })
        else
          bottom = 0
        end
        box({ left: 0, right: 0, width: :auto, top: top, bottom: bottom, height: :auto, id: params[:application] })
        elsif params[:module]

      end
      super if defined?(super)
    end
  end

  class Object
    include EVe
  end

  # tests
  new({application: :compose, header: true, footer: true })

  # new(page: {name: :home, application: :compose, attach: :root })

  # new(module: {name: :home, application: :compose, attach: :root })






Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
atome_eVe-0.1.0.0.6 lib/eVe/init.rb
atome-0.5.6.2.9 lib/eVe/lib/init.rb
atome-0.5.6.2.7 lib/eVe/lib/init.rb