Class: Amrita2::Core::BaseNode

Inherits:
Object
  • Object
show all
Defined in:
lib/amrita2/template.rb

Overview

:nodoc: all

Direct Known Subclasses

CommentNode, ErbNode, ParentNode, StaticNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ BaseNode

Returns a new instance of BaseNode.



622
623
624
# File 'lib/amrita2/template.rb', line 622

def initialize(parent)
  @parent = parent
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



620
621
622
# File 'lib/amrita2/template.rb', line 620

def parent
  @parent
end

Instance Method Details

#dynamic?Boolean

Returns:

  • (Boolean)


640
641
642
# File 'lib/amrita2/template.rb', line 640

def dynamic?
  false
end

#has_ruby?Boolean

Returns:

  • (Boolean)


644
645
646
# File 'lib/amrita2/template.rb', line 644

def has_ruby?
  false
end

#module_src(cg) ⇒ Object



629
630
# File 'lib/amrita2/template.rb', line 629

def module_src(cg)
end

#parent_deObject



636
637
638
# File 'lib/amrita2/template.rb', line 636

def parent_de
  parent
end

#render_me(cg) ⇒ Object



626
627
# File 'lib/amrita2/template.rb', line 626

def render_me(cg)
end

#rootObject



632
633
634
# File 'lib/amrita2/template.rb', line 632

def root
  parent.root
end