Class: Tracksperanto::Import::NukeScript::IOC
- Inherits:
-
IO
- Object
- IO
- Tracksperanto::Import::NukeScript::IOC
- 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
- #gets_and_strip ⇒ Object
-
#initialize(h) ⇒ IOC
constructor
A new instance of IOC.
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_strip ⇒ Object
21 22 23 24 |
# File 'lib/import/nuke_script.rb', line 21 def gets_and_strip s = __getobj__.gets s ? s.strip : nil end |