Sha256: 97520cbed9a6b304a3a8f1648be7bfa5773842cf5d5ef40870f664cf50c8ccdb
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module Vedeu class Command include Virtus.model attribute :name, String attribute :entity, Class attribute :keyword, String, default: '' attribute :keypress, String, default: '' attribute :arguments, Array, default: [] def execute(args = []) executable.call(*args) end def executable proc { |*args| entity.dispatch(*args) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.25 | lib/vedeu/repository/command.rb |