Class: SystemRDL::Model::Value
- Inherits:
-
Data
- Object
- Data
- SystemRDL::Model::Value
- Defined in:
- lib/systemrdl/model/value.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#instance ⇒ Object
readonly
Returns the value of attribute instance.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#token_range ⇒ Object
readonly
Returns the value of attribute token_range.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#instance ⇒ Object (readonly)
Returns the value of attribute instance
5 6 7 |
# File 'lib/systemrdl/model/value.rb', line 5 def instance @instance end |
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/systemrdl/model/value.rb', line 5 def name @name end |
#token_range ⇒ Object (readonly)
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 (readonly)
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 ⇒ Object
6 7 8 |
# File 'lib/systemrdl/model/value.rb', line 6 def full_name "#{instance.full_name}.#{name}" end |
#inspect ⇒ Object
14 15 16 |
# File 'lib/systemrdl/model/value.rb', line 14 def inspect to_s 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 |
#to_s ⇒ Object
10 11 12 |
# File 'lib/systemrdl/model/value.rb', line 10 def to_s value.to_s end |