Module: Utils

Included in:
Sink, Source
Defined in:
lib/blanket/utils.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol) ⇒ Object



3
4
5
6
7
# File 'lib/blanket/utils.rb', line 3

def method_missing(symbol)
  @reader.send(symbol)
 rescue
   nil
end

Class Method Details

.included(klass) ⇒ Object



15
16
17
# File 'lib/blanket/utils.rb', line 15

def self.included(klass)
  klass.extend(ClassMethods)
end

Instance Method Details

#noopObject

remote noop command



10
11
12
# File 'lib/blanket/utils.rb', line 10

def noop
  "echo"
end