Class: ESRuby::Gem::Specification
- Inherits:
-
Object
- Object
- ESRuby::Gem::Specification
- Defined in:
- lib/esruby/gem/specification.rb
Class Attribute Summary collapse
-
.specifications ⇒ Object
readonly
Returns the value of attribute specifications.
Instance Attribute Summary collapse
-
#appended_js_sources ⇒ Object
readonly
Returns the value of attribute appended_js_sources.
-
#prepended_js_sources ⇒ Object
readonly
Returns the value of attribute prepended_js_sources.
Class Method Summary collapse
Instance Method Summary collapse
- #add_appended_js_source(path) ⇒ Object
- #add_prepended_js_source(path) ⇒ Object
-
#initialize(&block) ⇒ Specification
constructor
A new instance of Specification.
Constructor Details
#initialize(&block) ⇒ Specification
Returns a new instance of Specification.
19 20 21 22 23 |
# File 'lib/esruby/gem/specification.rb', line 19 def initialize(&block) @prepended_js_sources = [] @appended_js_sources = [] instance_eval(&block) end |
Class Attribute Details
.specifications ⇒ Object (readonly)
Returns the value of attribute specifications.
8 9 10 |
# File 'lib/esruby/gem/specification.rb', line 8 def specifications @specifications end |
Instance Attribute Details
#appended_js_sources ⇒ Object (readonly)
Returns the value of attribute appended_js_sources.
17 18 19 |
# File 'lib/esruby/gem/specification.rb', line 17 def appended_js_sources @appended_js_sources end |
#prepended_js_sources ⇒ Object (readonly)
Returns the value of attribute prepended_js_sources.
17 18 19 |
# File 'lib/esruby/gem/specification.rb', line 17 def prepended_js_sources @prepended_js_sources end |
Class Method Details
.new(*arguments) ⇒ Object
11 12 13 14 15 |
# File 'lib/esruby/gem/specification.rb', line 11 def self.new(*arguments) new_specification = super(*arguments) @specifications << new_specification new_specification end |
Instance Method Details
#add_appended_js_source(path) ⇒ Object
29 30 31 |
# File 'lib/esruby/gem/specification.rb', line 29 def add_appended_js_source(path) @appended_js_sources << path end |
#add_prepended_js_source(path) ⇒ Object
25 26 27 |
# File 'lib/esruby/gem/specification.rb', line 25 def add_prepended_js_source(path) @prepended_js_sources << path end |