lib/powerstar.rb in powerstar-0.1.3 vs lib/powerstar.rb in powerstar-0.1.4
- old
+ new
@@ -6,9 +6,12 @@
class Error < StandardError; end
# Your code goes here...
def self.root(a,b)
return a*b
end
- class User < ApplicationRecord
- validates :name,presence:true
+ module User < ApplicationRecord
+ # validates :name,presence:true
+ def self.ganesh
+ puts "ganesh method is executing"
+ end
end
end