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

#==(other) ⇒ Object

[View source]

11
12
13
14
15
# File 'lib/lazy_graph/path_parser/path_group.rb', line 11

def ==(other)
  return options == other if other.is_a?(Array)

  super
end

#index?Boolean

Returns:

  • (Boolean)
[View source]

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

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