Class: Funicular::Plugin::Spec
- Inherits:
-
Object
- Object
- Funicular::Plugin::Spec
- Defined in:
- lib/funicular/plugin.rb
Instance Attribute Summary collapse
-
#bundler_spec ⇒ Object
readonly
Returns the value of attribute bundler_spec.
Instance Method Summary collapse
- #css_paths ⇒ Object
-
#initialize(bundler_spec) ⇒ Spec
constructor
A new instance of Spec.
- #name ⇒ Object
- #project ⇒ Object
- #root ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(bundler_spec) ⇒ Spec
Returns a new instance of Spec.
42 43 44 |
# File 'lib/funicular/plugin.rb', line 42 def initialize(bundler_spec) @bundler_spec = bundler_spec end |
Instance Attribute Details
#bundler_spec ⇒ Object (readonly)
Returns the value of attribute bundler_spec.
40 41 42 |
# File 'lib/funicular/plugin.rb', line 40 def bundler_spec @bundler_spec end |
Instance Method Details
#css_paths ⇒ Object
58 59 60 |
# File 'lib/funicular/plugin.rb', line 58 def css_paths project.css_paths end |
#name ⇒ Object
54 55 56 |
# File 'lib/funicular/plugin.rb', line 54 def name bundler_spec.name end |
#project ⇒ Object
50 51 52 |
# File 'lib/funicular/plugin.rb', line 50 def project @project ||= Project.new(root) end |
#root ⇒ Object
46 47 48 |
# File 'lib/funicular/plugin.rb', line 46 def root @root ||= Pathname(bundler_spec.full_gem_path). end |