Module: Punchout::Punchable

Defined in:
lib/punchout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#matcherObject

Returns the value of attribute matcher.



10
11
12
# File 'lib/punchout.rb', line 10

def matcher
  @matcher
end

Instance Method Details

#punch(obj) ⇒ Object



16
17
18
# File 'lib/punchout.rb', line 16

def punch(obj)
  puncher.punch(obj)
end

#punchable?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/punchout.rb', line 6

def punchable?
  true
end

#puncherObject



12
13
14
# File 'lib/punchout.rb', line 12

def puncher
  @puncher ||= Puncher.new
end