Class: Tracksperanto::Import::NukeScript::IOC

Inherits:
IO
  • Object
show all
Defined in:
lib/import/nuke_script.rb

Overview

Nuke files are extensively indented and indentation is significant. We use this to always strip the lines we process since we capture before indentation becomes crucial

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ IOC

Returns a new instance of IOC.



17
18
19
# File 'lib/import/nuke_script.rb', line 17

def initialize(h)
  __setobj__(h)
end

Instance Method Details

#gets_and_stripObject



21
22
23
24
# File 'lib/import/nuke_script.rb', line 21

def gets_and_strip
  s = __getobj__.gets
  s ? s.strip : nil
end