Class: DeepCover::Node::Str
- Inherits:
-
StaticLiteral
- Object
- DeepCover::Node
- StaticLiteral
- DeepCover::Node::Str
- Defined in:
- lib/deep_cover/node/literals.rb
Constant Summary
Constants inherited from DeepCover::Node
CLASSES, Complex, Cvasgn, Dsym, Erange, Float, Int, Ivar, Kwarg, Kwoptarg, Kwrestarg, OrAsgn, Rational, Sym, True, Zsuper
Instance Attribute Summary
Attributes inherited from DeepCover::Node
#base_node, #children, #index, #next_sibling, #parent, #previous_sibling
Instance Method Summary collapse
Methods inherited from StaticLiteral
Methods inherited from DeepCover::Node
[], #[], atom, #children_nodes, #covered_code, define_module_class, #each_node, #fancy_type, #find_all, has_evaluated_segments, inherited, #initialize, #simple_literal?, #to_s, #type
Methods included from Memoize
Constructor Details
This class inherits a constructor from DeepCover::Node
Instance Method Details
#executed_loc_keys ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/deep_cover/node/literals.rb', line 43 def executed_loc_keys keys = [:expression, :heredoc_body, :heredoc_end] exp = expression keys.delete(:expression) if exp && exp.source !~ /\S/ hd_body = loc_hash[:heredoc_body] keys.delete(:heredoc_body) if hd_body && hd_body.source !~ /\S/ keys end |