Sha256: 2e710dfb46b47ae359d911cce89932c98f85bcba2665b6b72f5ffdf62498cb8c
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
# frozen_string_literal: true module Clowne module Declarations class InitAs < Base # :nodoc: all attr_reader :block def initialize raise ArgumentError, 'Block is required for init_as' unless block_given? @block = Proc.new end def compile(plan) plan.set(:init_as, self) end end end end Clowne::Declarations.add :init_as, Clowne::Declarations::InitAs
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clowne-1.1.0 | lib/clowne/declarations/init_as.rb |
clowne-1.0.0 | lib/clowne/declarations/init_as.rb |