Module: Ionize::Php::Translate::MultipleStatements
- Included in:
- Statements
- Defined in:
- lib/ionize/translate/multiple_statements.rb
Instance Method Summary collapse
Instance Method Details
#level ⇒ Object
5 6 7 |
# File 'lib/ionize/translate/multiple_statements.rb', line 5 def level @level ||= 0 end |
#level=(other) ⇒ Object
9 10 11 |
# File 'lib/ionize/translate/multiple_statements.rb', line 9 def level=(other) @level = other end |
#multiple_statements ⇒ Object
13 14 15 16 17 18 |
# File 'lib/ionize/translate/multiple_statements.rb', line 13 def multiple_statements self.level += 1 result = yield self.level -= 1 result end |