Module: Utils
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #method_missing(symbol) ⇒ Object
-
#noop ⇒ Object
remote noop command.
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
#noop ⇒ Object
remote noop command
10 11 12 |
# File 'lib/blanket/utils.rb', line 10 def noop "echo" end |