Class: Dreader::Column

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

Overview

service class to implement the column DSL language

Instance Method Summary collapse

Instance Method Details

#check(&block) ⇒ Object



10
11
12
# File 'lib/dreader.rb', line 10

def check &block
  @check = block
end

#process(&block) ⇒ Object



6
7
8
# File 'lib/dreader.rb', line 6

def process &block
  @process = block
end

#to_hashObject



14
15
16
# File 'lib/dreader.rb', line 14

def to_hash
  {process: @process, check: @check }
end