Class: Fluidity::Grammer::Should

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



109
110
111
# File 'lib/fluidity/grammer.rb', line 109

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

#notObject



113
114
115
# File 'lib/fluidity/grammer.rb', line 113

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