class RoadForest::Graph::NullFocus

Public Class Methods

new(focus, pattern, callsite) click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 10
def initialize(focus, pattern, callsite)
  @focus, @pattern, @callsite = focus, pattern, callsite
end

Public Instance Methods

__callsite__() click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 14
def __callsite__
  @callsite
end
blank?() click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 26
def blank?
  true
end
count()
Alias for: length
empty?() click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 30
def empty?
  true
end
length() click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 34
def length
  0
end
Also aliased as: count, size
method_missing(method, *args, &block) click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 40
def method_missing(method, *args, &block)
  ::Kernel.raise ::NoMethodError, "No method '#{method}' on NullFocus. " +
    "NullFocus returned because there were no results at \n#{@focus.subject}\n  for \n#{@pattern.inspect}\n" +
    "Search was attempted at #{@callsite[0]}"
end
nil?() click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 22
def nil?
  true
end
size()
Alias for: length
subject() click to toggle source
# File lib/roadforest/graph/graph-focus.rb, line 18
def subject
  @focus.subject
end