On this page
Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.3
Prism::MatchLastLineNode
Represents a regular expression literal used in the predicate of a conditional to implicitly match against the last line read by an IO object.
if /foo/i then end ^^^^^^
Class methods 2
Instance methods 23
#accept
#ascii_8bit?
#child_nodes
#closing
#comment_targets
#compact_child_nodes
#content
#copy
#deconstruct
#deconstruct_keys
#euc_jp?
#extended?
#forced_binary_encoding?
#forced_us_ascii_encoding?
#forced_utf8_encoding?
#ignore_case?
#inspect
#multi_line?
#once?
#opening
#type
#utf_8?
#windows_31j?
Attributes
Read
attr_reader closing_loc: Location
Read
attr_reader content_loc: Location
Read
attr_reader opening_loc: Location