Class: Syobocal::Comment::Element::Blank

Inherits:
Object
  • Object
show all
Defined in:
lib/syobocal/comment/element/blank.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBlank

Returns a new instance of Blank.



5
# File 'lib/syobocal/comment/element/blank.rb', line 5

def initialize; end

Class Method Details

.match?(line) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/syobocal/comment/element/blank.rb', line 15

def self.match?(line)
  line.match(/\A\s*\Z/)
end

.parse(line) ⇒ Object



19
20
21
# File 'lib/syobocal/comment/element/blank.rb', line 19

def self.parse(line)
  Element::Blank.new
end

Instance Method Details

#==(other) ⇒ Object



7
8
9
# File 'lib/syobocal/comment/element/blank.rb', line 7

def ==(other)
  other.instance_of?(self.class)
end

#inner_textObject



11
12
13
# File 'lib/syobocal/comment/element/blank.rb', line 11

def inner_text
  ""
end