Sha256: d684661fa87297e20994a03715e735ad4e4f9c50e5a4167f536b786ce76a6786

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

class Shoes
  class Span < Text
    def initialize(texts, options={})
      @opts = options
      super texts, options.delete(:color)
    end

    def opts
      if @parent && @parent.respond_to?(:opts)
        @parent.opts.merge(@opts)
      else
        @opts
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre1 lib/shoes/span.rb