Sha256: 7f61eefed8c13a2b380ec2aa93baf578ec32f12677c6d3670bb44f1c9328e96b

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

# -*- coding: utf-8 -*-


require 'xot/setter'
require 'xot/block_util'
require 'reflex/ext'


module Reflex


  class StyleLength4

    include Xot::Setter

    alias l= left=
    alias l  left
    alias t= top=
    alias t  top
    alias r= right=
    alias r  right
    alias b= bottom=
    alias b  bottom

    def initialize (opts = {}, &block)
      super()
      set opts
      Xot::BlockUtil.instance_eval_or_block_call self, &block if block
    end

    def to_a ()
      [left, top, right, bottom]
    end

  end# StyleLength4


end# Reflex

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reflexion-0.1.10 lib/reflex/style_length4.rb
reflexion-0.1.9.1 lib/reflex/style_length4.rb
reflexion-0.1.9 lib/reflex/style_length4.rb
reflexion-0.1.8 lib/reflex/style_length4.rb
reflexion-0.1.7 lib/reflex/style_length4.rb