Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/mako/build.rb

Overview

Add some config functionality onto the hashes

Instance Method Summary collapse

Instance Method Details

#compiles_widget?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/mako/build.rb', line 15

def compiles_widget?
	!self[:type].nil? && ['compile_swf', 'compile_html'].include?(self[:type])
end

#contains_configs?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


23
24
25
# File 'lib/mako/build.rb', line 23

def is_package?
	!self[:type].nil? && self[:type] == 'package'
end