Module: MessagePack::IDL::IR::Primitive

Defined in:
lib/msgpack/idl/ir.rb

Constant Summary collapse

INT_TYPES =
[byte, short, int, long, ubyte, ushort, uint, ulong]

Class Method Summary collapse

Class Method Details

.define(name, value) ⇒ Object



171
172
173
174
175
# File 'lib/msgpack/idl/ir.rb', line 171

def self.define(name, value)
	(class << self; self; end).module_eval {
		define_method(name) { value }
	}
end