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) ⇒ Parser

Returns a new instance of Parser.



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

def initialize(hash)
  @hash = hash
end

Class Method Details

.call(hash) ⇒ Object



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

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

Instance Method Details

#callObject



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

def call
  build_expression(hash)
end