Class: Grumlin::Traverser

Inherits:
Object
  • Object
show all
Defined in:
lib/grumlin/traverser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Traverser

Returns a new instance of Traverser.



6
7
8
9
# File 'lib/grumlin/traverser.rb', line 6

def initialize(value)
  @bulk = value.dig(:bulk, :@value) || 1
  @value = Grumlin::Typing.cast(value[:value])
end

Instance Attribute Details

#bulkObject (readonly)

Returns the value of attribute bulk.



4
5
6
# File 'lib/grumlin/traverser.rb', line 4

def bulk
  @bulk
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/grumlin/traverser.rb', line 4

def value
  @value
end