Class: LazyGraph::PathParser::PathGroup

Inherits:
Struct
  • Object
show all
Defined in:
lib/lazy_graph/path_parser/path_group.rb

Overview

Represents a group of paths with a list of options, which must all be resolved.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



6
7
8
# File 'lib/lazy_graph/path_parser/path_group.rb', line 6

def options
  @options
end

Instance Method Details

#index?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/lazy_graph/path_parser/path_group.rb', line 7

def index?
  @index ||= options.all?(&:index?)
end