Sha256: 4491abed0a50ce19407eb44ee7358c8046a88c6e0854c7711c50981ff3627eea
Contents?: true
Size: 265 Bytes
Versions: 3
Compression:
Stored size: 265 Bytes
Contents
module Pessimize class Declaration attr_reader :name, :args def initialize(name, *args) @name = name @args = args end def to_code s = "" s << "#{name} " s << args.map(&:inspect).join(", ") s end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pessimize-0.1.0 | lib/pessimize/declaration.rb |
pessimize-0.0.3 | lib/pessimize/declaration.rb |
pessimize-0.0.2 | lib/pessimize/declaration.rb |