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



1884
1885
1886
# File 'lib/active_record/refined/ast.rb', line 1884

def begin
  @begin
end

#endObject

Returns the value of attribute end

Returns:

  • (Object)

    the current value of end



1884
1885
1886
# File 'lib/active_record/refined/ast.rb', line 1884

def end
  @end
end

#exclude_endObject

Returns the value of attribute exclude_end

Returns:

  • (Object)

    the current value of exclude_end



1884
1885
1886
# File 'lib/active_record/refined/ast.rb', line 1884

def exclude_end
  @exclude_end
end

Instance Method Details

#exclude_end?Boolean

Returns:

  • (Boolean)


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

def exclude_end? = exclude_end