Sha256: ca8232e8f29034890ff8df19fdc4ab878305f38ec1cc8cc035f85450eeef6b6b

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 Bytes

Contents

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


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


module Reflex


  class StyleLength2

    include Xot::Setter

    alias w= width=
    alias w  width
    alias h= height=
    alias h  height

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

    def to_a ()
      [width, height]
    end

  end# StyleLength2


end# Reflex

Version data entries

5 entries across 5 versions & 1 rubygems

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