class Onewire::Scope
Constants
- DELEGATED_METHODS
Public Class Methods
new(client, path)
click to toggle source
# File lib/onewire/scope.rb, line 8 def initialize(client, path) @client, @path = client, path end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
Calls superclass method
# File lib/onewire/scope.rb, line 12 def method_missing(name, *args, &block) if DELEGATED_METHODS.include? name.to_s path = "#{@path}/#{args.shift}" # Update path @client.send name, path, *args, &block else super end end
respond_to_missing?(name, include_private = false)
click to toggle source
# File lib/onewire/scope.rb, line 22 def respond_to_missing?(name, include_private = false) DELEGATED_METHODS.include? name.to_s end