Module: Ziya::YamlHelpers::Maps

Includes:
Base
Included in:
Maps::Base
Defined in:
lib/ziya/yaml_helpers/maps.rb

Instance Method Summary collapse

Methods included from Base

#clazz, #indent

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

#levelObject



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