Class: Fluidity::Grammer::Must

Inherits:
Base show all
Defined in:
lib/fluidity/grammer.rb

Instance Method Summary collapse

Methods inherited from Base

#==, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Fluidity::Grammer::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fluidity::Grammer::Base

Instance Method Details

#beObject

def method_missing(s, *a, &b)

call(s, *a, &b)

end



92
93
94
# File 'lib/fluidity/grammer.rb', line 92

def be
  Be.new(@target, @negate)
end

#notObject



96
97
98
# File 'lib/fluidity/grammer.rb', line 96

def not
  Must.new(@target, !@negate)
end