Class: Yop::UI

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

Overview

A base UI class

Direct Known Subclasses

TerminalUI

Instance Method Summary collapse

Instance Method Details

#get_var(name) ⇒ Any

get a variable’s value. It’ll fail with UndefinedTemplateVariable if the variable can’t be found.

Parameters:

  • name (String)

    the variable’s name

Returns:

  • (Any)


12
13
14
# File 'lib/yop/ui.rb', line 12

def get_var(name)
  fail UndefinedTemplateVariable, name
end