Sha256: 98f23b6bf41298f73f0b1e342dd61c9bc415207b18470ee3507413631de8cd8e
Contents?: true
Size: 308 Bytes
Versions: 2
Compression:
Stored size: 308 Bytes
Contents
class Hws::Connectors::Base ALLOWED_ACTION_CLASSES = [String, Symbol].freeze def self.execute_action action, *args return nil unless ALLOWED_ACTION_CLASSES.include?(action.class) action = action.to_sym return nil unless self.methods.include?(action) self.send(action, *args) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hws-connectors-0.1.1 | lib/hws-connectors/base.rb |
hws-connectors-0.1.0 | lib/hws-connectors/base.rb |