Module: XamplGenerator::ResolveAsChild

Included in:
Options
Defined in:
lib/xamplr-gen/xampl-hand-generated.rb

Instance Method Summary collapse

Instance Method Details

#add_resolve(resolve) ⇒ Object



435
436
437
438
439
440
441
442
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 435

def add_resolve(resolve)
  accessed
  @children << resolve
  @resolve_child << resolve
  resolve.add_parent(self)
  changed
  return resolve
end

#init_resolve_as_childObject



431
432
433
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 431

def init_resolve_as_child
  @resolve_child = []
end

#new_resolve {|resolve| ... } ⇒ Object Also known as: ensure_resolve

Yields:



444
445
446
447
448
449
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 444

def new_resolve
  accessed
  resolve = Resolve.new
  yield(resolve) if block_given?
  return add_resolve(resolve)
end

#remove_resolve(resolve) ⇒ Object



453
454
455
456
457
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 453

def remove_resolve(resolve)
  accessed
  @resolve_child.delete(resolve)
  @children.delete(resolve)
end

#resolve_childObject Also known as: resolve



418
419
420
421
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 418

def resolve_child
  accessed
  @resolve_child
end

#resolve_child=(v) ⇒ Object Also known as: resolve=



423
424
425
426
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 423

def resolve_child=(v)
  accessed
  @resolve_child = v
end