Module: Shorthand::Method

Defined in:
lib/shorthand.rb

Instance Method Summary collapse

Instance Method Details

#shorthand(&block) ⇒ Object



20
21
22
23
24
# File 'lib/shorthand.rb', line 20

def shorthand(&block)
  if block
    ::Shorthand::Provider.new(self, &block)
  end
end