Sha256: bd319f906869d7f78ba9e3f6927b0a38b48625a91c6a3f2ec280ecb89602bbab
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
# coding: utf-8 module ThinReports module Core::Shape # @private class Basic::Internal < Base::Internal # Delegate to Format's methods format_delegators :id, :svg_tag, :svg_attrs, :type def visible(visibility) states[:display] = visibility end def visible? states.key?(:display) ? states[:display] : format.display? end def svg_attr(attr_name, value) attrs[attr_name.to_s] = value end def type_of?(type_name) ['s-basic', self.type].include?("s-#{type_name}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.6.0.pre3 | lib/thinreports/core/shape/basic/internal.rb |