Class: ActiveRecord::Refined::AST::In::QuotedRange

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_record/refined/ast.rb

Overview

Range holds its endpoints to Comparable, which a quoted node is not, so this quacks the three methods Arel's between reads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#beginObject

Returns the value of attribute begin

Returns:

  • (Object)

    the current value of begin



2098
2099
2100
# File 'lib/active_record/refined/ast.rb', line 2098

def begin
  @begin
end

#endObject

Returns the value of attribute end

Returns:

  • (Object)

    the current value of end



2098
2099
2100
# File 'lib/active_record/refined/ast.rb', line 2098

def end
  @end
end

#exclude_endObject

Returns the value of attribute exclude_end

Returns:

  • (Object)

    the current value of exclude_end



2098
2099
2100
# File 'lib/active_record/refined/ast.rb', line 2098

def exclude_end
  @exclude_end
end

Instance Method Details

#exclude_end?Boolean

Returns:

  • (Boolean)


2099
# File 'lib/active_record/refined/ast.rb', line 2099

def exclude_end? = exclude_end