Exception: Pione::Lang::BindingError

Inherits:
LangError
  • Object
show all
Defined in:
lib/pione/lang/lang-exception.rb

Overview

Binding errors

Direct Known Subclasses

CircularReferenceError, RebindError, UnboundError

Instance Method Summary collapse

Instance Method Details

#nameObject



89
90
91
92
93
94
95
96
97
98
# File 'lib/pione/lang/lang-exception.rb', line 89

def name
  case @ref
  when Variable
    "variable $%s" % @ref.name
  when RuleExpr
    "rule %s" % @ref.name
  when PackageExpr
    "package &%s" % @ref.name
  end
end