Module: Thrift::Base64Extension

Included in:
Struct
Defined in:
lib/thrift/base64.rb

Overview

NOTE: this module is a little workaround in off the chance another library has redefined Struct.included. So instead we prepend a module which then extends the original including class with the module containing from_base64.

Defined Under Namespace

Modules: FromBase64

Instance Method Summary collapse

Instance Method Details

#included(base) ⇒ Object



33
34
35
36
# File 'lib/thrift/base64.rb', line 33

def included(base)
  base.extend FromBase64
  super
end