class CartoCSSHelper::TagRenderingStatus
Attributes
Public Class Methods
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
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
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