Sha256: d73a482afbcf585036a234af560b1f79f479474b2152587fd94adff837ebb10d

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

class Shoes
  module Common
    module State
      def state
        @state
      end

      def state=(value)
        @state = value
        @gui.enabled value.nil?
      end

      def state_options(opts)
        self.state = opts[:state] 
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
shoes-dsl-4.0.0.pre2 lib/shoes/common/state.rb
shoes-4.0.0.pre1 lib/shoes/common/state.rb