Class: Repeatable::Parser

Inherits:
Object
  • Object
show all
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.



3
4
5
# File 'lib/repeatable/parser.rb', line 3

def initialize(hash)
  @hash = hash
end

Class Method Details

.call(hash) ⇒ Object



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

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

Instance Method Details

#callObject



11
12
13
# File 'lib/repeatable/parser.rb', line 11

def call
  build_expression(hash)
end