Class: Marty::Diagnostic::Nodes
- Inherits:
-
Base
show all
- Defined in:
- lib/marty/diagnostic/nodes.rb
Class Method Summary
collapse
Methods inherited from Base
get_final_attrs, get_struct_attrs, make_hash, make_openstruct, mcfly_pt
joins, old_joins
Class Method Details
.error_if(arr) ⇒ Object
49
50
51
52
53
|
# File 'lib/marty/diagnostic/nodes.rb', line 49
def self.error_if arr
return arr if arr.empty?
error(arr.join("\n"))
end
|
.valid_if(arr) ⇒ Object
43
44
45
46
47
|
# File 'lib/marty/diagnostic/nodes.rb', line 43
def self.valid_if arr
return arr.join("\n") unless arr.empty?
error('---')
end
|