Class: Hrk::Execute::RemoteDisplay
- Inherits:
-
Object
- Object
- Hrk::Execute::RemoteDisplay
- Defined in:
- lib/hrk/execute/remote_display.rb
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(next_callee) ⇒ RemoteDisplay
constructor
A new instance of RemoteDisplay.
Constructor Details
#initialize(next_callee) ⇒ RemoteDisplay
Returns a new instance of RemoteDisplay.
4 5 6 7 |
# File 'lib/hrk/execute/remote_display.rb', line 4 def initialize next_callee @env = Hrk::Env.new @next_callee = next_callee end |
Instance Method Details
#call(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/hrk/execute/remote_display.rb', line 9 def call *args if args.empty? if @env.remote? puts @env.remote.join ' ' true else false end else @next_callee.call(*args) end end |