lib/origen/registers/reg.rb
# All other Reg methods are delegated to BitCollection
All other Reg methods are delegated to BitCollection
All other Reg methods are delegated to BitCollection
def method_missing(method, *args, &block) 
        wbo = :lsb0
        if args.last.is_a?(Hash)
          wbo = args.last[:with_bit_order] if args.last.key?(:with_bit_order)
        end
        if method.to_sym == :to_ary || method.to_sym == :to_hash
          nil
        elsif meta_data_method?(method)
          extract_meta_data(method, *args)
        else
          if BitCollection.instance_methods.include?(method)
            to_bit_collection(with_bit_order: wbo).send(method, *args, &block)
          elsif has_bits?(method)
            bits(method, with_bit_order: wbo)
          else
            super
          end
        end
      end
def method_missing ( method , * args , & block ) wbo = :lsb0 if args . last . is_a? ( Hash ) wbo = args . last [ :with_bit_order ] if args . last . key? ( :with_bit_order ) end if method . to_sym == :to_ary || method . to_sym == :to_hash nil elsif meta_data_method? ( method ) extract_meta_data ( method , * args ) else if BitCollection . instance_methods . include? ( method ) to_bit_collection ( with_bit_order : wbo ) . send ( method , * args , & block ) elsif has_bits? ( method ) bits ( method , with_bit_order : wbo ) else super end end end
All other Reg methods are delegated to BitCollection
All other Reg methods are delegated to BitCollection
# :nodoc:
method
<not_specific>
args
<not_specific>
block
<not_specific>