Class: Vli::UI::Interface
- Inherits:
-
Object
- Object
- Vli::UI::Interface
- 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`
Instance Attribute Summary collapse
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource) ⇒ Interface
constructor
A new instance of Interface.
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
#resource ⇒ Object
Returns the value of attribute resource.
11 12 13 |
# File 'lib/vli/ui.rb', line 11 def resource @resource end |