Sha256: 558295d557c323781eb4a5862f76dd7cb1a2208cc032a64ef2176524fe527a14

Contents?: true

Size: 428 Bytes

Versions: 205

Compression:

Stored size: 428 Bytes

Contents

module Origen
  module Parameters
    require 'delegate'
    class Live < ::Delegator
      def initialize(options)
        @owner = options[:owner]
        @path = options[:path].split('.')
        @name = options[:name]
      end

      def __getobj__
        p = @owner.params
        @path.each { |pt| p = p.send(pt) }
        p.send(@name)
      end

      def is_a_live_parameter?
        true
      end
    end
  end
end

Version data entries

205 entries across 205 versions & 1 rubygems

Version Path
origen-0.33.0 lib/origen/parameters/live.rb
origen-0.32.1 lib/origen/parameters/live.rb
origen-0.32.0 lib/origen/parameters/live.rb
origen-0.31.0 lib/origen/parameters/live.rb
origen-0.30.0 lib/origen/parameters/live.rb
origen-0.29.0 lib/origen/parameters/live.rb
origen-0.28.2 lib/origen/parameters/live.rb
origen-0.28.1 lib/origen/parameters/live.rb
origen-0.28.0 lib/origen/parameters/live.rb
origen-0.27.0 lib/origen/parameters/live.rb
origen-0.26.0 lib/origen/parameters/live.rb
origen-0.25.1 lib/origen/parameters/live.rb
origen-0.25.0 lib/origen/parameters/live.rb
origen-0.24.0 lib/origen/parameters/live.rb
origen-0.23.0 lib/origen/parameters/live.rb
origen-0.22.0 lib/origen/parameters/live.rb
origen-0.21.0 lib/origen/parameters/live.rb
origen-0.20.3 lib/origen/parameters/live.rb
origen-0.20.2 lib/origen/parameters/live.rb
origen-0.20.1 lib/origen/parameters/live.rb