class CartoCSSHelper::TagRenderingStatus
Attributes
composite[RW]
key[RW]
state[RW]
value[RW]
Public Class Methods
new(key, value, state, composite = nil)
click to toggle source
# File lib/cartocss_helper/tag_lister.rb, line 11 def initialize(key, value, state, composite = nil) @key = key @value = value @state = state @composite = composite end
Public Instance Methods
code_print()
click to toggle source
# File lib/cartocss_helper/tag_lister.rb, line 26 def code_print string = "Status.new('#{@key}', '#{@value}', :#{@state}" string << ", #{@composite}" if @composite != nil string << '),' puts string end
print()
click to toggle source
# File lib/cartocss_helper/tag_lister.rb, line 18 def print composite_string = '' if composite composite_string = "- rendered with #{@composite.to_s.gsub('=>', '=')}, maybe also other sets of tags" end puts "#{@key}=#{@value} #{@state} #{composite_string}" end