Method: Juniter::HasChildren::ClassMethods#text_child

Defined in:
lib/juniter/has_children.rb

#text_child(*args) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/juniter/has_children.rb', line 25

def text_child(*args)
  if args.any?
    @__text_child = args.first
    child(args.first)
  end
  @__text_child
end