Class: Textlint::Server
- Inherits:
-
Object
- Object
- Textlint::Server
- Defined in:
- lib/textlint/server.rb
Constant Summary collapse
- REQUIRED_VERSION =
'2.0.0'
- AVAILABLE_ACTIONS =
%w[ parse info ].freeze
Instance Method Summary collapse
-
#initialize(stdin: $stdin, stdout: $stdout, stderr: $stderr) ⇒ Server
constructor
A new instance of Server.
-
#start ⇒ void
Start stdio server.
Constructor Details
#initialize(stdin: $stdin, stdout: $stdout, stderr: $stderr) ⇒ Server
Returns a new instance of Server.
17 18 19 20 21 |
# File 'lib/textlint/server.rb', line 17 def initialize(stdin: $stdin, stdout: $stdout, stderr: $stderr) @stdin = stdin @stdout = stdout @stderr = stderr end |
Instance Method Details
#start ⇒ void
This method returns an undefined value.
Start stdio server
26 27 28 29 30 |
# File 'lib/textlint/server.rb', line 26 def start @stdout.sync = true trap_signals start_server end |