File: impersonate.rb

package info (click to toggle)
ruby-naught 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: ruby: 1,091; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
module Naught
  class NullClassBuilder
    module Commands
      class Impersonate < Naught::NullClassBuilder::Commands::Mimic
        def initialize(builder, class_to_impersonate, options = {})
          super
          builder.base_class = class_to_impersonate
        end
      end
    end
  end
end