Class: Textorize::Runner
- Inherits:
-
Object
- Object
- Textorize::Runner
- Defined in:
- lib/textorize/runner.rb
Instance Method Summary collapse
-
#initialize(string, output, options) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(string, output, options) ⇒ Runner
Returns a new instance of Runner.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/textorize/runner.rb', line 6 def initialize(string, output, ) if [:font_smoothing] defaults = OSX::NSUserDefaults.standardUserDefaults [:original_font_smoothing] = defaults.integerForKey('AppleFontSmoothing') defaults.setInteger_forKey([:font_smoothing], 'AppleFontSmoothing') end app = OSX::NSApplication.sharedApplication app.delegate = RunnerApplication.alloc.(string, output, ) app.run end |