Class: Vli::UI::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/vli/ui.rb

Overview

Vli UIs handle communication with the outside world (typically through a shell). They must respond to the following methods:

  • ‘info`

  • ‘warn`

  • ‘error`

  • ‘success`

Direct Known Subclasses

Basic, Silent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ Interface

Returns a new instance of Interface.



13
14
15
# File 'lib/vli/ui.rb', line 13

def initialize(resource)
  @resource = resource
end

Instance Attribute Details

#resourceObject

Returns the value of attribute resource.



11
12
13
# File 'lib/vli/ui.rb', line 11

def resource
  @resource
end