Module: MARQ::Name
- Defined in:
- lib/MARQ/main.rb
Class Method Summary collapse
- .clean(name) ⇒ Object
- .cross_platform(name) ⇒ Object
- .is_cross_platform?(name) ⇒ Boolean
- .is_ratio?(name) ⇒ Boolean
Class Method Details
.clean(name) ⇒ Object
7 8 9 |
# File 'lib/MARQ/main.rb', line 7 def self.clean(name) name.sub(/_cross_platform/,'') unless name.nil? end |
.cross_platform(name) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/MARQ/main.rb', line 11 def self.cross_platform(name) if name =~ /_cross_platform/ name else name + "_cross_platform" end end |
.is_cross_platform?(name) ⇒ Boolean
19 20 21 |
# File 'lib/MARQ/main.rb', line 19 def self.is_cross_platform?(name) ! name.match(/_cross_platform$/).nil? end |
.is_ratio?(name) ⇒ Boolean
23 24 25 |
# File 'lib/MARQ/main.rb', line 23 def self.is_ratio?(name) ! name.match(/\[ratio\]$/).nil? end |