Class: RuboCop::Erb::RubyExtractor::ErbNode
- Inherits:
-
Object
- Object
- RuboCop::Erb::RubyExtractor::ErbNode
- Defined in:
- lib/rubocop/erb/ruby_extractor.rb
Instance Method Summary collapse
- #comment? ⇒ Boolean
- #escape? ⇒ Boolean
-
#initialize(node) ⇒ ErbNode
constructor
A new instance of ErbNode.
Constructor Details
#initialize(node) ⇒ ErbNode
Returns a new instance of ErbNode.
100 101 102 |
# File 'lib/rubocop/erb/ruby_extractor.rb', line 100 def initialize(node) @node = node end |
Instance Method Details
#comment? ⇒ Boolean
105 106 107 |
# File 'lib/rubocop/erb/ruby_extractor.rb', line 105 def comment? indicator == '#' end |
#escape? ⇒ Boolean
110 111 112 |
# File 'lib/rubocop/erb/ruby_extractor.rb', line 110 def escape? indicator == '%' end |