Sha256: 2f4d40a3eb6061c9b8efacb6d94eb23c24455401dd3d703c141f8c6a54056b19
Contents?: true
Size: 280 Bytes
Versions: 3
Compression:
Stored size: 280 Bytes
Contents
module Phut class Syntax # Common DSL directive class Directive def self.attribute(name) define_method(name) do |value| @attributes[name] = value end end def [](key) @attributes.fetch(key) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phut-0.7.7 | lib/phut/syntax/directive.rb |
phut-0.7.6 | lib/phut/syntax/directive.rb |
phut-0.7.5 | lib/phut/syntax/directive.rb |