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