Sha256: 46ff9a0e8c5c75bf39a5688a48d437553670567cf2beb7972e9cbb8c269be879
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
module Antelope module DSL module Contexts class Terminal < Base def terminal(map, value = true) case map when Hash @terminals.merge!(map) when Symbol, String @terminals[map] = value else raise ArgumentError, "Unexpected #{map.class}, expected " \ "Hash or Symbol" end end private attr_reader :terminals alias_method :data, :terminals def before_call @terminals = {} end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems