Module: RiderServer
- Defined in:
- lib/rider_server/errors.rb,
lib/rider_server/utils.rb,
lib/rider_server/config.rb,
lib/rider_server/logger.rb,
lib/rider_server/server.rb,
lib/rider_server/inspect.rb,
lib/rider_server/request.rb,
lib/rider_server/service.rb,
lib/rider_server/session.rb,
lib/rider_server/version.rb,
lib/rider_server/response.rb,
lib/rider_server/operation.rb,
lib/rider_server/workspace.rb,
lib/rider_server/operations.rb,
lib/rider_server/validate/base.rb,
lib/rider_server/validate/hash.rb,
lib/rider_server/services/rails.rb,
lib/rider_server/validate/array.rb,
lib/rider_server/validate/string.rb,
lib/rider_server/validate/symbol.rb,
lib/rider_server/operations/clone.rb,
lib/rider_server/operations/close.rb,
lib/rider_server/validate/boolean.rb,
lib/rider_server/validate/integer.rb,
lib/rider_server/operations/lookup.rb,
lib/rider_server/session_operation.rb,
lib/rider_server/exception_extension.rb,
lib/rider_server/services/capture_io.rb,
lib/rider_server/validate/predicates.rb,
lib/rider_server/operations/completions.rb,
lib/rider_server/operations/ls_sessions.rb,
lib/rider_server/session_operations/eval.rb,
lib/rider_server/session_operations/stdin.rb,
lib/rider_server/session_operations/inspect.rb,
lib/rider_server/session_operations/service.rb,
lib/rider_server/services/capture_exceptions.rb,
lib/rider_server/session_operations/interrupt.rb,
lib/rider_server/session_operations/load_path.rb,
lib/rider_server/session_operations/ls_services.rb,
lib/rider_server/session_operations/ls_exceptions.rb,
lib/rider_server/session_operations/set_namespace.rb,
lib/rider_server/session_operations/inspect_exception.rb,
lib/rider_server/operations/toggle_catch_all_exceptions.rb,
lib/rider_server/session_operations/set_namespace_variable.rb
Overview
predicates.rb – Predicates for values
Author: Russell Sim Copyright © 2024 Russell Sim SPDX-License-Identifier: MIT
Defined Under Namespace
Modules: ExceptionExtension, Inspect, Logger, Ops, Services, Utils, Validate Classes: Config, Error, EvalInterrupt, ModuleLookupError, Operation, Operations, Request, Response, Server, Service, Session, SessionOperation, Workspace
Constant Summary collapse
- VERSION =
"0.1.2"
- TOPLEVEL_BINDING =
binding
Class Method Summary collapse
- .create_operation_handler(config, response_queue) ⇒ Object
- .create_session(config, response_queue, history: []) ⇒ Object
Instance Method Summary collapse
Class Method Details
.create_operation_handler(config, response_queue) ⇒ Object
31 32 33 |
# File 'lib/rider_server/operations.rb', line 31 def self.create_operation_handler(config, response_queue) Operations.new(config, response_queue) end |
.create_session(config, response_queue, history: []) ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/rider_server/session.rb', line 30 def self.create_session(config, response_queue, history: []) session = Session.new(config, response_queue, history: history) ObjectSpace.each_object(Class).select { |klass| klass < ::RiderServer::Service }.map do |klass, h| session.add_service klass end session end |
Instance Method Details
#create_response(operation) ⇒ Object
57 58 59 60 61 62 |
# File 'lib/rider_server/utils.rb', line 57 def create_response(operation) { "id" => operation["id"], "time-stamp" => Time.now.strftime("%Y-%m-%d %H:%M:%S") } end |