Sha256: 2933d7d3ebe1659b4950815a80863dde4e4b617c60d3819ff8ad7bcfa0490cd0
Contents?: true
Size: 330 Bytes
Versions: 22
Compression:
Stored size: 330 Bytes
Contents
module Ruboty class AdapterBuilder def self.adapter_classes @adapter_classes ||= [] end attr_reader :robot def initialize(robot) @robot = robot end def build adapter_class.new(robot) end private def adapter_class self.class.adapter_classes.last end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
ruboty-1.0.1 | lib/ruboty/adapter_builder.rb |
ruboty-1.0.0 | lib/ruboty/adapter_builder.rb |