Sha256: 8e9c9abdc27bcf0ad61e78661eca50d9aced0dca8bbb43f4ad76c86dcf106162
Contents?: true
Size: 458 Bytes
Versions: 18
Compression:
Stored size: 458 Bytes
Contents
# -*- encoding : utf-8 -*- module Dao class Endpoint Attrs = %w( api path route block doc ) Attrs.each{|attr| attr_accessor(attr)} def initialize(options = {}) update(options) end def update(options = {}) options.each do |key, val| send("#{ key }=", val) end end def arity block.arity end def call(*args) block.call(*args) end def to_proc block end end end
Version data entries
18 entries across 18 versions & 1 rubygems