Sha256: e5cd9a4690e0e116a4fff99ff2ee52952e0d27bd5f3050b8e2a74d8b74178aa4
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
module Smooth module Documentation def self.included base binding.pry base.class_eval do attr_accessor :_inline_description class << self attr_accessor :_inline_description end end base.extend Smooth::Documentation end def desc description, *args self._inline_description = { description: description, args: args } end def inline_description val = self._inline_description && self._inline_description.dup self._inline_description = nil val end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smooth-2.0.1 | lib/smooth/documentation.rb |