Class: Amrita2::GetTextBridge::TextNodeForGetText
Instance Attribute Summary
#parent
Instance Method Summary
collapse
#initialize
#has_ruby?, #initialize, #module_src, #parent_de, #root
Instance Method Details
#dynamic? ⇒ Boolean
55
56
57
|
# File 'lib/amrita2/gettext.rb', line 55
def dynamic?
true
end
|
#get_erb_source ⇒ Object
68
69
70
|
# File 'lib/amrita2/gettext.rb', line 68
def get_erb_source
return ""
end
|
#render_me(cg) ⇒ Object
59
60
61
62
63
64
65
66
67
|
# File 'lib/amrita2/gettext.rb', line 59
def render_me(cg)
text = ""
@node.output(text, :preserve=>true)
text.strip!
cg.put_string_expression("_(#{text.inspect}) % $_") if text != ""
end
|