Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/mako/build.rb
Overview
Add some config functionality onto the hashes
Instance Method Summary collapse
- #compiles_widget? ⇒ Boolean
- #contains_configs? ⇒ Boolean
- #is_copy_type? ⇒ Boolean
- #is_package? ⇒ Boolean
Instance Method Details
#compiles_widget? ⇒ Boolean
15 16 17 |
# File 'lib/mako/build.rb', line 15 def !self[:type].nil? && ['compile_swf', 'compile_html'].include?(self[:type]) end |
#contains_configs? ⇒ Boolean
19 20 21 |
# File 'lib/mako/build.rb', line 19 def contains_configs? !self[:type].nil? && self[:type] == 'config' end |
#is_copy_type? ⇒ Boolean
27 28 29 |
# File 'lib/mako/build.rb', line 27 def is_copy_type? !self[:type].nil? && self[:type] == 'copy' end |
#is_package? ⇒ Boolean
23 24 25 |
# File 'lib/mako/build.rb', line 23 def is_package? !self[:type].nil? && self[:type] == 'package' end |