class MovieMasher::GraphUtility

base class for most other graph related classes

Public Instance Methods

__coerce_if_numeric(value) click to toggle source
# File lib/graph.rb, line 14
def __coerce_if_numeric(value)
  Evaluate.coerce_if_numeric(value)
end
__is_and_not_empty(thing) click to toggle source
# File lib/graph.rb, line 5
def __is_and_not_empty(thing)
  thing && !thing.empty?
end
__raise_if_empty(s, msg) click to toggle source
# File lib/graph.rb, line 11
def __raise_if_empty(s, msg)
  raise(Error::JobInput, msg) if s.empty?
end
__raise_unless(tf, msg) click to toggle source
# File lib/graph.rb, line 8
def __raise_unless(tf, msg)
  raise(Error::JobInput, msg) unless tf
end