Class: Repeatable::Parser

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/repeatable/parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ void

Parameters:

  • hash (Hash{String, Symbol => T.untyped})


8
9
10
# File 'lib/repeatable/parser.rb', line 8

def initialize(hash)
  @hash = hash
end

Class Method Details

.call(hash) ⇒ Expression::Base

Parameters:

  • hash (Hash{String, Symbol => T.untyped})

Returns:



13
14
15
# File 'lib/repeatable/parser.rb', line 13

def self.call(hash)
  new(hash).call
end

Instance Method Details

#callExpression::Base

Returns:



18
19
20
# File 'lib/repeatable/parser.rb', line 18

def call
  build_expression(hash)
end