Class: Jade::Symbol::StdlibFunction
- Inherits:
-
Data
- Object
- Data
- Jade::Symbol::StdlibFunction
- Includes:
- Base
- Defined in:
- lib/jade/symbol/stdlib_function.rb
Instance Attribute Summary collapse
-
#codegen ⇒ Object
readonly
Returns the value of attribute codegen.
-
#constraints ⇒ Object
readonly
Returns the value of attribute constraints.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
Methods included from Base
#constructor_refs, #qualified_name
Instance Attribute Details
#codegen ⇒ Object (readonly)
Returns the value of attribute codegen
3 4 5 |
# File 'lib/jade/symbol/stdlib_function.rb', line 3 def codegen @codegen end |
#constraints ⇒ Object (readonly)
Returns the value of attribute constraints
3 4 5 |
# File 'lib/jade/symbol/stdlib_function.rb', line 3 def constraints @constraints end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name
3 4 5 |
# File 'lib/jade/symbol/stdlib_function.rb', line 3 def module_name @module_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name
3 4 5 |
# File 'lib/jade/symbol/stdlib_function.rb', line 3 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
3 4 5 |
# File 'lib/jade/symbol/stdlib_function.rb', line 3 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
3 4 5 |
# File 'lib/jade/symbol/stdlib_function.rb', line 3 def return_type @return_type end |
Instance Method Details
#constant? ⇒ Boolean
10 11 12 |
# File 'lib/jade/symbol/stdlib_function.rb', line 10 def constant? params.empty? && constraints.empty? end |
#to_ref ⇒ Object
6 7 8 |
# File 'lib/jade/symbol/stdlib_function.rb', line 6 def to_ref ValueRef[module_name, name] end |