Class: SystemRDL::Model::Value
- Inherits:
-
Struct
- Object
- Struct
- SystemRDL::Model::Value
- Defined in:
- lib/systemrdl/model/value.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#instance ⇒ Object
Returns the value of attribute instance.
-
#name ⇒ Object
Returns the value of attribute name.
-
#token_range ⇒ Object
Returns the value of attribute token_range.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #full_name(exclude_addrmap: false) ⇒ Object
- #inspect ⇒ Object
- #instance_ref? ⇒ Boolean
- #pretty_print(pp) ⇒ Object
- #property_ref? ⇒ Boolean
- #to_s ⇒ Object
- #value? ⇒ Boolean
Instance Attribute Details
#instance ⇒ Object
Returns the value of attribute instance
5 6 7 |
# File 'lib/systemrdl/model/value.rb', line 5 def instance @instance end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/systemrdl/model/value.rb', line 5 def name @name end |
#token_range ⇒ Object
Returns the value of attribute token_range
5 6 7 |
# File 'lib/systemrdl/model/value.rb', line 5 def token_range @token_range end |
#value ⇒ Object
Returns the value of attribute value
5 6 7 |
# File 'lib/systemrdl/model/value.rb', line 5 def value @value end |
Instance Method Details
#full_name(exclude_addrmap: false) ⇒ Object
6 7 8 |
# File 'lib/systemrdl/model/value.rb', line 6 def full_name(exclude_addrmap: false) [instance.full_name(exclude_addrmap:), name].reject(&:empty?).join('.') end |
#inspect ⇒ Object
14 15 16 |
# File 'lib/systemrdl/model/value.rb', line 14 def inspect to_s end |
#instance_ref? ⇒ Boolean
27 28 29 |
# File 'lib/systemrdl/model/value.rb', line 27 def instance_ref? false end |
#pretty_print(pp) ⇒ Object
18 19 20 21 |
# File 'lib/systemrdl/model/value.rb', line 18 def pretty_print(pp) pp.text("#{name}: ") pp_value(pp) end |
#property_ref? ⇒ Boolean
31 32 33 |
# File 'lib/systemrdl/model/value.rb', line 31 def property_ref? false end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/systemrdl/model/value.rb', line 10 def to_s value.to_s end |
#value? ⇒ Boolean
23 24 25 |
# File 'lib/systemrdl/model/value.rb', line 23 def value? true end |