module Jot::Ruby
Constants
- VERSION
Attributes
impl[W]
Public Class Methods
impl_registry()
click to toggle source
# File lib/jot/ruby.rb, line 21 def impl_registry @impl_registry ||= {} end
init(impl_name = nil)
click to toggle source
# File lib/jot/ruby.rb, line 11 def init(impl_name = nil) impl_const = Jot::Ruby.impl_registry[impl_name.to_s] impl_const ||= Jot::Ruby.impl_registry.values.first raise Errors::NoImplError unless impl_const self.impl = impl_const.new end
Private Class Methods
impl()
click to toggle source
# File lib/jot/ruby.rb, line 29 def impl @impl ||= init end