module Thrift::LocalTypeChecking

Constants

VERSION

Public Class Methods

extended(*) click to toggle source
# File lib/thrift/local_type_checking.rb, line 6
def self.extended(*)
  ::Thrift::Struct.extend(ClassMethods)
  ::Thrift::Struct.overwrite_initialize
  ::Thrift::Struct.instance_eval do
    def method_added(name)
      return if name != :initialize
      overwrite_initialize
    end
  end
end

Public Instance Methods

method_added(name) click to toggle source
# File lib/thrift/local_type_checking.rb, line 10
def method_added(name)
  return if name != :initialize
  overwrite_initialize
end