Method: Code#initialize
- Defined in:
- lib/crokus/code.rb
#initialize(str = nil) ⇒ Code
Returns a new instance of Code.
5 6 7 8 9 |
# File 'lib/crokus/code.rb', line 5 def initialize str=nil @lines=[] (@lines << str) if str @indent=0 end |