class BufferEntryReference
Public Class Methods
new(template)
click to toggle source
# File template.rb, line 1288 def initialize(template) @template = template @level = 0; end
Public Instance Methods
[](arg)
click to toggle source
# File template.rb, line 1293 def [](arg) @level = arg; self end
bits(min, max)
click to toggle source
# File template.rb, line 1306 def bits(min, max) @template.newEntryReference @level, min, max end
call(min, max)
click to toggle source
# File template.rb, line 1302 def call(min, max) bits(min, max) end
java_object()
click to toggle source
# File template.rb, line 1298 def java_object @template.newEntryReference @level end
method_missing(meth, *args)
click to toggle source
# File template.rb, line 1310 def method_missing(meth, *args) if args.count != 0 and args.count != 2 raise MTRubyError, "Wrong argument count: #{args.count}. Must be 0 or 2." end if args.count == 2 @template.newEntryFieldReference @level, meth.to_s, args[0], args[1] else @template.newEntryFieldReference @level, meth.to_s end end