Exception: Eeml::Exceptions::MissingAttribute

Inherits:
BadEeml
  • Object
show all
Defined in:
lib/eeml/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from BadEeml

#line_num

Instance Method Summary collapse

Constructor Details

#initialize(node_name, attribute_name) ⇒ MissingAttribute

Returns a new instance of MissingAttribute.



52
53
54
55
# File 'lib/eeml/exceptions.rb', line 52

def initialize(node_name, attribute_name)
  @node_name = node_name
  @attribute_name = attribute_name
end

Instance Attribute Details

#attribute_nameObject

Returns the value of attribute attribute_name.



50
51
52
# File 'lib/eeml/exceptions.rb', line 50

def attribute_name
  @attribute_name
end

#node_nameObject

Returns the value of attribute node_name.



50
51
52
# File 'lib/eeml/exceptions.rb', line 50

def node_name
  @node_name
end

Instance Method Details

#to_sObject



57
58
59
# File 'lib/eeml/exceptions.rb', line 57

def to_s
  "Missing attribute '#@attribute_name' from node '#@node_name'"
end