Module: Ziya::YamlHelpers::Maps
Instance Method Summary collapse
- #config(component_name) ⇒ Object
- #level ⇒ Object
-
#map(class_name) ⇒ Object
Defines various helpers to assist in writing ZiYa yaml stylesheets.
Methods included from Base
Instance Method Details
#config(component_name) ⇒ Object
10 11 12 |
# File 'lib/ziya/yaml_helpers/maps.rb', line 10 def config( component_name ) "#{component_name}: #{clazz component_name, 'Maps::Support'}" end |
#level ⇒ Object
14 15 16 |
# File 'lib/ziya/yaml_helpers/maps.rb', line 14 def level "- " + config( :range ) end |
#map(class_name) ⇒ Object
Defines various helpers to assist in writing ZiYa yaml stylesheets.
6 7 8 |
# File 'lib/ziya/yaml_helpers/maps.rb', line 6 def map( class_name ) "--- #{clazz( class_name, :Maps )}" end |