Class: CodeObject::Function
- Defined in:
- lib/code_object/function.rb
Constant Summary
Constants included from Dom::Node
Dom::Node::ABSOLUTE, Dom::Node::LEAF, Dom::Node::NODENAME, Dom::Node::NS_SEP, Dom::Node::NS_SEP_STRING, Dom::Node::RELATIVE
Instance Attribute Summary
Attributes inherited from Base
Attributes included from Parser::MetaContainer
#filepath, #line_start, #source
Instance Method Summary collapse
Methods inherited from Base
Methods included from Parser::MetaContainer
Methods included from Dom::Node
#[], #add_node, #children, #each_child, #find, #has_children?, #initialize, #namespace, #parent, #parents, #print_tree, #qualified_name, #resolve, #siblings
Methods included from Token::Container
#add_token, #initialize, #process_token, #process_tokens, #token, #tokens
Constructor Details
This class inherits a constructor from CodeObject::Base
Instance Method Details
#constructor? ⇒ Boolean
11 12 13 |
# File 'lib/code_object/function.rb', line 11 def constructor? @constructor || false end |
#prototype ⇒ Object
16 17 18 |
# File 'lib/code_object/function.rb', line 16 def prototype children[:prototype] end |