Module: Protod::Proto::InterpreterBindable

Included in:
Message, Package
Defined in:
lib/protod/proto/part.rb

Instance Method Summary collapse

Instance Method Details

#bind(interpreter) ⇒ Object

Raises:

  • (ArgumentError)


184
185
186
187
188
# File 'lib/protod/proto/part.rb', line 184

def bind(interpreter)
  raise ArgumentError, "Not bindable interpreter #{interpreter.proto_full_ident} trying bound to #{ident}" unless interpreter.bindable?
  interpreter.set_parent(self)
  push(interpreter.proto_message, into: :messages, ignore: true)
end