Sha256: bd99596a1f1d6948ee35916eeadffcc6bd1b599404bbf8b5972970e92523599c

Contents?: true

Size: 747 Bytes

Versions: 17

Compression:

Stored size: 747 Bytes

Contents

module ESRuby
  class Gem
    class Specification
    
      @specifications = []
      
      class << self
        attr_reader :specifications
      end
      
      def self.new(*arguments)
        new_specification = super(*arguments)
        @specifications << new_specification
        new_specification
      end
      
      attr_reader :prepended_js_sources, :appended_js_sources
      
      def initialize(&block)
        @prepended_js_sources = []
        @appended_js_sources = []
        instance_eval(&block)
      end
      
      def add_prepended_js_source(path)
        @prepended_js_sources << path
      end
      
      def add_appended_js_source(path)
        @appended_js_sources << path
      end
      
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
esruby-0.2.0 lib/esruby/gem/specification.rb
esruby-0.1.5 lib/esruby/gem/specification.rb
esruby-0.1.4 lib/esruby/gem/specification.rb
esruby-0.1.3 lib/esruby/gem/specification.rb
esruby-0.1.2 lib/esruby/gem/specification.rb
esruby-0.1.1 lib/esruby/gem/specification.rb
esruby-0.1.0 lib/esruby/gem/specification.rb
esruby-0.0.11 lib/esruby/gem/specification.rb
esruby-0.0.10 lib/esruby/gem/specification.rb
esruby-0.0.9 lib/esruby/gem/specification.rb
esruby-0.0.8 lib/esruby/gem/specification.rb
esruby-0.0.7 lib/esruby/gem/specification.rb
esruby-0.0.6 lib/esruby/gem/specification.rb
esruby-0.0.5 lib/esruby/gem/specification.rb
esruby-0.0.3 lib/esruby/gem/specification.rb
esruby-0.0.2 lib/esruby/gem/specification.rb
esruby-0.0.0 lib/esruby/gem/specification.rb