Inner method - HotRuby - Ruby on JavaScript & Flash

HotRuby

Ruby on JavaScript and Flash

HotRuby > TEST > Inner method

Update 2008-07-24 | Create 2008-07-23

Result


Source

$a = 'Make everything '
def init
  def msg
    c = ', but not simpler.'
    return $a + very_important + c
  end
  def very_important
    'as simple as possible'
  end
end
init
puts msg + ' - Albert Einstein'