Sha256: 7f46e47cebb2f0a4a8c59df0b75bea053a36b3311e7f8b1a471b8ea9f7e6e00a

Contents?: true

Size: 497 Bytes

Versions: 10

Compression:

Stored size: 497 Bytes

Contents

module CloudSesame
	module Query
		module Domain
			class Literal
				include DSL::BindCaller
				include DSL::RangeHelper

				attr_reader :_name, :_options, :_caller

				def initialize(_name, _options, _caller)
					@_name = _name
					@_options = _options
					@_caller = _caller

					_bind_caller_instance_variables
				end

				def _eval(&block)
					if block_given? && (_value = instance_exec(&block))
						AST::Literal.new _name, _value, _options
					end
				end

			end
		end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
CloudSesame-0.7.5 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.7.4 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.7.3 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.7.2 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.7.1 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.7.0 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.6.8 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.6.7 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.6.6 lib/cloud_sesame/query/domain/literal.rb
CloudSesame-0.6.5 lib/cloud_sesame/query/domain/literal.rb