Class: BitClust::RRDParser::Signature
- Includes:
- NameUtils
- Defined in:
- lib/bitclust/rrdparser.rb
Constant Summary
Constants included from NameUtils
NameUtils::CHAR_TO_MARK, NameUtils::CHAR_TO_NAME, NameUtils::CLASS_NAME_RE, NameUtils::CLASS_PATH_RE, NameUtils::CONST_PATH_RE, NameUtils::CONST_RE, NameUtils::GVAR_RE, NameUtils::LIBNAME_RE, NameUtils::MARK_TO_CHAR, NameUtils::MARK_TO_NAME, NameUtils::METHOD_NAME_RE, NameUtils::METHOD_SPEC_RE, NameUtils::MID, NameUtils::NAME_TO_CHAR, NameUtils::NAME_TO_MARK, NameUtils::TYPEMARK_RE
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #compatible?(other) ⇒ Boolean
- #fully_qualified? ⇒ Boolean
-
#initialize(c, t, m) ⇒ Signature
constructor
A new instance of Signature.
- #inspect ⇒ Object
- #same_type?(other) ⇒ Boolean
- #to_s ⇒ Object
- #typename ⇒ Object
Methods included from NameUtils
build_method_id, classid2name, classname2id, classname?, decodeid, decodename_fs, decodename_url, display_typemark, encodeid, encodename_fs, encodename_rdocurl, encodename_url, functionname?, gvarname?, html_filename, libid2name, libname2id, libname?, method_spec?, methodid2classid, methodid2libid, methodid2mname, methodid2specparts, methodid2specstring, methodid2typechar, methodid2typemark, methodid2typename, methodname?, split_method_id, split_method_spec, typechar2mark, typechar2name, typechar?, typemark2char, typemark2name, typemark?, typename2char, typename2mark, typename?
Constructor Details
#initialize(c, t, m) ⇒ Signature
Returns a new instance of Signature.
671 672 673 674 675 |
# File 'lib/bitclust/rrdparser.rb', line 671 def initialize(c, t, m) @klass = c # String @type = t @name = m end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
677 678 679 |
# File 'lib/bitclust/rrdparser.rb', line 677 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
679 680 681 |
# File 'lib/bitclust/rrdparser.rb', line 679 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
678 679 680 |
# File 'lib/bitclust/rrdparser.rb', line 678 def type @type end |
Instance Method Details
#compatible?(other) ⇒ Boolean
697 698 699 700 |
# File 'lib/bitclust/rrdparser.rb', line 697 def compatible?(other) (not @klass or not other.klass or @klass == other.klass) and (not @type or not other.type or @type == other.type) end |
#fully_qualified? ⇒ Boolean
702 703 704 |
# File 'lib/bitclust/rrdparser.rb', line 702 def fully_qualified? (@klass and @type) ? true : false end |
#inspect ⇒ Object
681 682 683 |
# File 'lib/bitclust/rrdparser.rb', line 681 def inspect "\#<signature #{to_s()}>" end |
#same_type?(other) ⇒ Boolean
693 694 695 |
# File 'lib/bitclust/rrdparser.rb', line 693 def same_type?(other) @klass == other.klass and @type == other.type end |
#to_s ⇒ Object
685 686 687 |
# File 'lib/bitclust/rrdparser.rb', line 685 def to_s "#{@klass || '_'}#{@type || ' _ '}#{@name}" end |
#typename ⇒ Object
689 690 691 |
# File 'lib/bitclust/rrdparser.rb', line 689 def typename typemark2name(_ = @type) end |