Class: Y2R::AST::YCP::Locale
- Inherits:
-
Node
- Object
- OpenStruct
- Node
- Y2R::AST::YCP::Locale
show all
- Defined in:
- lib/y2r/ast/ycp.rb
Instance Method Summary
collapse
Methods inherited from Node
#always_returns?, #compile_as_copy_if_needed, #compile_statements, #compile_statements_inside_block, #compile_statements_with_whitespace, #creates_local_scope?, #needs_copy?, #optimize_last_statement, #optimize_next, #optimize_return, #remove_duplicate_imports, transfers_comments
Instance Method Details
#compile(context) ⇒ Object
1571
1572
1573
1574
1575
1576
1577
1578
1579
|
# File 'lib/y2r/ast/ycp.rb', line 1571
def compile(context)
Ruby::MethodCall.new(
:receiver => nil,
:name => "_",
:args => [Ruby::Literal.new(:value => text)],
:block => nil,
:parens => true
)
end
|
#never_nil? ⇒ Boolean
1583
1584
1585
1586
|
# File 'lib/y2r/ast/ycp.rb', line 1583
def never_nil?
return true
end
|