Class: SFRP::Raw::TConst
- Inherits:
-
Struct
- Object
- Struct
- SFRP::Raw::TConst
- Defined in:
- lib/sfrp/raw/elements.rb
Instance Attribute Summary collapse
-
#native_str ⇒ Object
Returns the value of attribute native_str.
-
#ns ⇒ Object
Returns the value of attribute ns.
-
#pstrs ⇒ Object
Returns the value of attribute pstrs.
-
#rname ⇒ Object
Returns the value of attribute rname.
-
#sp ⇒ Object
Returns the value of attribute sp.
-
#static ⇒ Object
Returns the value of attribute static.
-
#vconsts ⇒ Object
Returns the value of attribute vconsts.
Instance Method Summary collapse
Instance Attribute Details
#native_str ⇒ Object
Returns the value of attribute native_str
23 24 25 |
# File 'lib/sfrp/raw/elements.rb', line 23 def native_str @native_str end |
#ns ⇒ Object
Returns the value of attribute ns
23 24 25 |
# File 'lib/sfrp/raw/elements.rb', line 23 def ns @ns end |
#pstrs ⇒ Object
Returns the value of attribute pstrs
23 24 25 |
# File 'lib/sfrp/raw/elements.rb', line 23 def pstrs @pstrs end |
#rname ⇒ Object
Returns the value of attribute rname
23 24 25 |
# File 'lib/sfrp/raw/elements.rb', line 23 def rname @rname end |
#sp ⇒ Object
Returns the value of attribute sp
23 24 25 |
# File 'lib/sfrp/raw/elements.rb', line 23 def sp @sp end |
#static ⇒ Object
Returns the value of attribute static
23 24 25 |
# File 'lib/sfrp/raw/elements.rb', line 23 def static @static end |
#vconsts ⇒ Object
Returns the value of attribute vconsts
23 24 25 |
# File 'lib/sfrp/raw/elements.rb', line 23 def vconsts @vconsts end |
Instance Method Details
#absolute_name ⇒ Object
24 25 26 |
# File 'lib/sfrp/raw/elements.rb', line 24 def absolute_name ns.absolute_name(rname) end |
#gen_flat(_src_set, dest_set) ⇒ Object
28 29 30 31 |
# File 'lib/sfrp/raw/elements.rb', line 28 def gen_flat(_src_set, dest_set) vconst_strs = vconsts.map(&:absolute_name) dest_set << Flat::TConst.new(absolute_name, pstrs, vconst_strs, native_str, static, sp) end |